Closed jukx closed 6 years ago
This should work:
cd
line with cd "$(dirname "$0")"
ln -s
the script into a directory that's in your PATHYou can leave your shell script in the updater directory, ln -s
it to somewhere in your PATH, use
Doesn't get the correct path to the script via $0 when you run the linked file. Another case of "which systems are going to be supported?" :(
I definitely have some scripts up that way, though I may have misremembered the exact syntax. I'll check and report back.
Thanks, that would be great!
Try cd "$(dirname "$(readlink -f "$0")")"
lua xxx.lua
is a bit unwieldy. Consolidating both functions into one script makes a lot of sense, especially when you want to use the application from the command line in daily use.The only issue would be to determine the AddOns directory.
I'm using this one: