aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbootstrap.sh22
1 files changed, 12 insertions, 10 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index df2d339..7127570 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -19,17 +19,19 @@ doIt() {
-avh --no-perms ./ ~/
}
-if [ "$1" = "--force" -o "$1" = "-f" ]; then
+if [ "$1" = "--force" ] || [ "$1" = "-f" ]
+then
doIt;
else
- printf "This may overwrite existing files in your home directory. Are you sure? (y/n) ";
- read REPLY;
- echo "";
- if [ "$REPLY" = "y" -o "$REPLY" = "Y" ]; then
- doIt;
- else exit 1;
- fi;
-fi;
+ printf "This may overwrite existing files in your home directory. Are you sure? (y/n) "
+ read REPLY
+ echo ""
+ if [ "$REPLY" = "y" -o "$REPLY" = "Y" ]
+ then
+ doIt
+ else exit 1
+ fi
+fi
-unset doIt;
+unset doIt