Browse Source

Fixed SDK slash check. Must have been high when I wrote this since it was the exact opposite as was needed

Jaywalker 6 years ago
parent
commit
a8881da234
1 changed files with 3 additions and 3 deletions
  1. 3 3
      the_memo.sh

+ 3 - 3
the_memo.sh

@@ -137,9 +137,9 @@ if [ -z "$SDK_PATH" ]; then
 	elif [ "$PLATFORM" == "WatchOS" ]; then
 		SDK_PATH="`xcrun --sdk watchos --show-sdk-path`"
 	fi
-elif [ ! ${SDK_PATH: -1} == "/" ]; then
-	# Some of our sed's require SDK_PATH end with /
-	SDK_PATH="$SDK_PATH/"
+elif [ ${SDK_PATH: -1} == "/" ]; then
+	# Some of our sed's require SDK_PATH *not* end with /
+	SDK_PATH="`echo $SDK_PATH | sed 's/\/$//g'`"
 fi
 
 #================