Browse Source

Merge pull request #246 from kwhatmough/next

Fixes the double backsplash in xCode paths which was annoying however no...
Ken Whatmough 13 years ago
parent
commit
6c69707243
1 changed files with 5 additions and 1 deletions
  1. 5 1
      gameplay-newproject.sh

+ 5 - 1
gameplay-newproject.sh

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