From b574799f63a319c9670e88a9d2cf6180b6d37719 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Tue, 28 Nov 2017 16:27:48 -0500 Subject: [PATCH] Fix -r --- scripts/sync.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sync.sh b/scripts/sync.sh index 9aee3ac..48d5cf2 100755 --- a/scripts/sync.sh +++ b/scripts/sync.sh @@ -102,13 +102,13 @@ remove() { \mv -t "$TMP_PATH" $* fi } -while getopts ":shbc" OPT "$@"; do +while getopts ":shbcr" OPT "$@"; do case $OPT in b) SYNC_VIM=1;VALID_CMD=1;; s) SYNC_CUSTOM=1;; c) SYNC_CONFIG=1;VALID_CMD=1;; r) RECLONE=1;; - *) SHOW_HELP=1;; + *) echo "Invalid option: $OPT";SHOW_HELP=1;; esac done if [[ $SHOW_HELP = 1 ]] || [[ ! $VALID_CMD = 1 ]]; then