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)
committerMartin Wickham <spexguy070@gmail.com>
Sat, 18 Oct 2014 06:15:22 +0000 (01:15 -0500)
package.sh

index f4c03c6fc77958410432c332b61063ec92a53eeb..02c413480a82cd568d67ddf318f3c815ad37b387 100755 (executable)
@@ -82,7 +82,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/"