From a77638d5c1fe7833118083d1b7e68ce03673e77a Mon Sep 17 00:00:00 2001 From: Nic Hartley Date: Thu, 21 Feb 2019 10:02:22 -0500 Subject: [PATCH] Remove bashism in favor of portable alternative (#220) --- emsdk_env.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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