Quote our paths so PWD with spaces works

This commit is contained in:
T. Joseph Carter 2015-02-21 20:36:05 -08:00
parent 102c8521dc
commit e6147e9e24
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
SCRIPT="${0#./}"
BASE_DIR="${SCRIPT%/*}"
WORKDIR=$PWD
WORKDIR="$PWD"
if [ "$BASE_DIR" = "$SCRIPT" ]; then
BASE_DIR="$WORKDIR"

View File

@ -3,7 +3,7 @@
SCRIPT="${0#./}"
BASE_DIR="${SCRIPT%/*}"
WORKDIR=$PWD
WORKDIR="$PWD"
if [ "$BASE_DIR" = "$SCRIPT" ]; then
BASE_DIR="$WORKDIR"
@ -14,7 +14,7 @@ else
fi
fi
. ${BASE_DIR}/libretro-config.sh
. "$BASE_DIR/libretro-config.sh"
if [ -z "$RARCH_DIST_DIR" ]; then
RARCH_DIR="$WORKDIR/dist"