- Add ./ in rm -rf ./$gitName to avoid a disaster if gitName=/

- Fix syntax error: my bash does not like a space after "fi"
This commit is contained in:
Laurent Rineau
2011-04-29 17:22:01 +00:00
parent bcdc7c3771
commit a71aff5e02
+4 -4
View File
@@ -104,9 +104,9 @@ fi
### Create repo
echo "Create new directory $gitname"
rm -fr $gitName
mkdir $gitName
cd $gitName
rm -fr ./$gitName
mkdir ./$gitName
cd ./$gitName
echo
if [ "$cloneLocation" != "" ]; then
@@ -121,7 +121,7 @@ if [ "$cloneLocation" != "" ]; then
echo "Checking out remotes/svn/branches/next"
git checkout -b local/next remotes/svn/next
fi
fi
# rewrite root