Batch files now work in directories with spaces in it

Before the batch files could not run if the path to the directory had one
or more spaces in it. EG: "C:/Desktop/Spigot Repo". Now works with the
patch

By: mrkirby153 <mr.austinwhyte@gmail.com>
This commit is contained in:
Spigot
2013-11-05 16:26:20 -08:00
parent 964389e910
commit 2e01d5ac17
3 changed files with 10 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
basedir=`pwd`
function update {
cd $basedir/$1
cd "$basedir/$1"
git fetch && git reset --hard origin/master
cd ../
git add $1