aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap.bash')
-rwxr-xr-xsrc/bootstrap.bash6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bootstrap.bash b/src/bootstrap.bash
index 60d6151ccd..1b5ba7c536 100755
--- a/src/bootstrap.bash
+++ b/src/bootstrap.bash
@@ -35,8 +35,10 @@ cp -R "$src" "$targ"
cd "$targ"
echo
echo "#### Cleaning $targ"
-rm .gitignore
-git clean -f -d
+rm -f .gitignore
+if [ -e .git ]; then
+ git clean -f -d
+fi
echo
echo "#### Building $targ"
echo