Skip to content

Commit 8c8c91f

Browse files
authored
First call readlink on argument 0 and then dirname (#110)
Fixes support for being executed via a symbolic link.
1 parent 80404e9 commit 8c8c91f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/AppRun.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
this_dir="$(readlink -f "$(dirname "$0")")"
5+
this_dir="$(dirname -- "$(readlink -f -- "$0")")"
66

77
# make appimagetool prefer the bundled mksquashfs
88
export PATH="$this_dir"/usr/bin:"$PATH"

0 commit comments

Comments
 (0)