From 626946bccccbb354354977d92d864edb30a8b0e0 Mon Sep 17 00:00:00 2001 From: William Ting Date: Thu, 22 Nov 2012 14:45:10 -0600 Subject: [PATCH] Set default installation to auto if only --force flag is passed. --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 50dc6ba..0c97f6a 100755 --- a/install.sh +++ b/install.sh @@ -29,7 +29,6 @@ function help_msg { } dry_run= -auto= local= force= shell=`echo ${SHELL} | awk -F/ '{ print $NF }'` @@ -62,6 +61,9 @@ while true; do -f|--force) force=true shift + if [[ ${#} == 0 ]]; then + set -- "--auto" + fi ;; -g|--global) destdir=