Remove bashism in favor of portable alternative (#220)
This commit is contained in:
@@ -19,10 +19,11 @@ SRC="$BASH_SOURCE"
|
|||||||
if [ "$SRC" = "" ]; then
|
if [ "$SRC" = "" ]; then
|
||||||
SRC="$0"
|
SRC="$0"
|
||||||
fi
|
fi
|
||||||
pushd `dirname "$SRC"` > /dev/null
|
CURDIR=$(pwd)
|
||||||
|
cd $(dirname "$SRC")
|
||||||
unset SRC
|
unset SRC
|
||||||
|
|
||||||
./emsdk construct_env "$@"
|
./emsdk construct_env "$@"
|
||||||
. ./emsdk_set_env.sh
|
. ./emsdk_set_env.sh
|
||||||
|
|
||||||
popd > /dev/null
|
cd $CURDIR
|
||||||
|
|||||||
Reference in New Issue
Block a user