Skip to content

Commit

Permalink
Use $0 to get execution path
Browse files Browse the repository at this point in the history
$_ is "The last argument of the previous command." (cf. man zshparam) on
zsh, so SRC will be "]".
  • Loading branch information
fchiba committed Apr 15, 2015
1 parent 3bea227 commit 3bf41eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emsdk_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

SRC="$BASH_SOURCE"
if [ "$SRC" = "" ]; then
SRC="$_"
SRC="$0"
fi
pushd `dirname "$SRC"` > /dev/null
unset SRC
Expand Down

0 comments on commit 3bf41eb

Please sign in to comment.