Skip to content

Commit a77638d

Browse files
Nic Hartleyjuj
authored andcommitted
Remove bashism in favor of portable alternative (#220)
1 parent c486741 commit a77638d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

emsdk_env.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ SRC="$BASH_SOURCE"
1919
if [ "$SRC" = "" ]; then
2020
SRC="$0"
2121
fi
22-
pushd `dirname "$SRC"` > /dev/null
22+
CURDIR=$(pwd)
23+
cd $(dirname "$SRC")
2324
unset SRC
2425

2526
./emsdk construct_env "$@"
2627
. ./emsdk_set_env.sh
2728

28-
popd > /dev/null
29+
cd $CURDIR

0 commit comments

Comments
 (0)