chiark / gitweb /
Make package.sh work for paths containing spaces
authorMartin Wickham <spexguy070@gmail.com>
Sat, 18 Oct 2014 06:15:22 +0000 (01:15 -0500)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Wed, 14 Jan 2015 17:06:32 +0000 (12:06 -0500)
package.sh

index 65611c1da35ad50b7a704755aaadbada54a989be..eb78dae2bc425d2fff10d313531731d4c15ebf73 100755 (executable)
@@ -88,7 +88,7 @@ fi
 # Change working directory to the directory the script is in
 # http://stackoverflow.com/a/246128
 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-cd $SCRIPT_DIR
+cd "$SCRIPT_DIR"
 
 checkTool git "git: http://git-scm.com/"
 checkTool curl "curl: http://curl.haxx.se/"