From 41c790a3beedd7549c82a755ccb3608cec793003 Mon Sep 17 00:00:00 2001 From: Jon Maddox Date: Tue, 26 Mar 2013 10:35:45 -0400 Subject: [PATCH] quit early if we can't find the RetroArch repo --- libretro-build-ios.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libretro-build-ios.sh b/libretro-build-ios.sh index a1fb9dbf..c966f1de 100755 --- a/libretro-build-ios.sh +++ b/libretro-build-ios.sh @@ -7,6 +7,12 @@ ROOT_DIR=$CORES_DIR/libretro-super RARCH_DIR=$CORES_DIR/RetroArch RARCH_DIST_DIR=$RARCH_DIR/ios/modules +if [ ! -d "$RARCH_DIST_DIR" ] +then + echo "Can't find the RetroArch directory, quitting..." + exit 0 +fi + export IOSSDK=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/ if ! $SKIPFETCH ; then