Skip to content

Commit 5e16e06

Browse files
authored
Merge pull request #19 from anki-code/patch-1
Fix when ARGV0 empty
2 parents c6e1845 + cf26e12 commit 5e16e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/python-wrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ done
3131
# But don't resolve symlinks from outside!
3232
if [[ "${ARGV0}" =~ "/" ]]; then
3333
executable="$(cd $(dirname ${ARGV0}) && pwd)/$(basename ${ARGV0})"
34-
else
34+
elif [[ "${ARGV0}" != "" ]]; then
3535
executable=$(which "${ARGV0}")
3636
fi
3737

0 commit comments

Comments
 (0)