From e6147e9e24b3bc526e0081a1f85a52087fe8c20f Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Sat, 21 Feb 2015 20:36:05 -0800 Subject: [PATCH] Quote our paths so PWD with spaces works --- libretro-build-ios.sh | 2 +- libretro-build.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libretro-build-ios.sh b/libretro-build-ios.sh index 9030b8be..a6f3349f 100755 --- a/libretro-build-ios.sh +++ b/libretro-build-ios.sh @@ -3,7 +3,7 @@ SCRIPT="${0#./}" BASE_DIR="${SCRIPT%/*}" -WORKDIR=$PWD +WORKDIR="$PWD" if [ "$BASE_DIR" = "$SCRIPT" ]; then BASE_DIR="$WORKDIR" diff --git a/libretro-build.sh b/libretro-build.sh index 9505d3e5..3501b966 100755 --- a/libretro-build.sh +++ b/libretro-build.sh @@ -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"