From 8a57f5f31594737f1d994c8cb170f2ccd8bdaf4c Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sun, 31 Jul 2022 22:57:42 -0400 Subject: [PATCH] FIX make rock installer able to be called from anywhere --- install_rocks | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install_rocks b/install_rocks index 66d0349..c0bebde 100755 --- a/install_rocks +++ b/install_rocks @@ -1,3 +1,5 @@ #!/bin/bash -luarocks --tree=lib install lyaml \ No newline at end of file +this_dir="$(dirname "$0")" + +luarocks --tree="$this_dir/lib" install lyaml