Ver Fonte

Merge pull request #692 from iceocean/next

Changes to allow project path to include spaces.
Sean Paul Taylor há 13 anos atrás
pai
commit
27f3274c2b
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      gameplay-newproject.sh

+ 3 - 3
gameplay-newproject.sh

@@ -159,7 +159,7 @@ gpPathAbs=`pwd`
 common_path=$projPath
 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")
 	if [ -z "$back" ]; then
 	if [ -z "$back" ]; then
 		back=".."
 		back=".."
 	else
 	else
@@ -280,9 +280,9 @@ aliassedinplace "s*TEMPLATE_TITLE*$title*g" "$projPath/game.config"
 
 
 # Open the new project folder, use xdg-open on Linux
 # Open the new project folder, use xdg-open on Linux
 if [[ "$unamestr" == "Linux" ]]; then
 if [[ "$unamestr" == "Linux" ]]; then
-	xdg-open $projPath
+	xdg-open "$projPath"
 else
 else
-	open $projPath
+	open "$projPath"
 fi
 fi
 
 
 exit 0
 exit 0