From 2de05fde9c026ee82d2ecccce9edd00af06c0fb1 Mon Sep 17 00:00:00 2001 From: William Ting Date: Fri, 23 Nov 2012 07:46:17 -0600 Subject: [PATCH] Dry run defaults to --auto if only option. Closes #164. --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 7552004..84b194f 100755 --- a/install.sh +++ b/install.sh @@ -84,6 +84,9 @@ while true; do -n|--dry_run) dry_run=true shift + if [[ ${#} == 0 ]]; then + set -- "--auto" + fi ;; -p|--prefix) if [ $# -gt 1 ]; then