diff --git a/emsdk_env.sh b/emsdk_env.sh index 6688288..fc96a18 100755 --- a/emsdk_env.sh +++ b/emsdk_env.sh @@ -19,10 +19,11 @@ SRC="$BASH_SOURCE" if [ "$SRC" = "" ]; then SRC="$0" fi -pushd `dirname "$SRC"` > /dev/null +CURDIR=$(pwd) +cd $(dirname "$SRC") unset SRC ./emsdk construct_env "$@" . ./emsdk_set_env.sh -popd > /dev/null +cd $CURDIR