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