aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-05-20 05:01:40 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-05-20 05:01:40 +0300
commit90d530fe1067ce9080c58fddc936904db90e361e (patch)
treedcfc2faddd6bc3a40dbca1ef6b40b67175209995
parentd250c71b79881bf949dc0bbd9e4df42bd2dabf4a (diff)
downloadapplause2-90d530fe1067ce9080c58fddc936904db90e361e.tar.gz
ilua-wrapper.sh: use realpath instead of readlink
* should fix running from arbitrary directories
-rwxr-xr-xilua-wrapper.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ilua-wrapper.sh b/ilua-wrapper.sh
index 51bf382..d635445 100755
--- a/ilua-wrapper.sh
+++ b/ilua-wrapper.sh
@@ -4,5 +4,5 @@
# Also, it's useful as you do not have to change the directory before invoking ILua.
# Thirdly, if you create a symbolic link to lua in a Python environment of ILua, this invoke
# Applause by default and it will even work with Jupyter Notebooks without further tweaks.
-cd $(dirname $(readlink "$0"))
+cd $(dirname $(realpath "$0"))
exec ./applause $APPLAUSE_OPTS "$@"