Bläddra i källkod

Fixes the double backsplash in xCode paths which was annoying however not fatal. Tested on Mac and iOS.

Ken Whatmough 13 år sedan
förälder
incheckning
27ed388fe3
1 ändrade filer med 5 tillägg och 1 borttagningar
  1. 5 1
      gameplay-newproject.sh

+ 5 - 1
gameplay-newproject.sh

@@ -145,7 +145,11 @@ common_path=$projPath
 back=
 while [ "${gpPathAbs#$common_path}" = "${gpPathAbs}" ]; do
 	common_path=$(dirname $common_path)
-	back="../${back}"
+	if [ -z "$back" ]; then
+		back=".."
+	else
+		back="../${back}"
+	fi
 done
 gpPath=${back}${gpPathAbs#$common_path/}
 if [[ ${gpPathAbs} == ${common_path} ]]; then