This commit is contained in:
Austen Adler 2017-11-28 16:27:48 -05:00
parent 0ddb5f420b
commit b574799f63

View File

@ -102,13 +102,13 @@ remove() {
\mv -t "$TMP_PATH" $* \mv -t "$TMP_PATH" $*
fi fi
} }
while getopts ":shbc" OPT "$@"; do while getopts ":shbcr" OPT "$@"; do
case $OPT in case $OPT in
b) SYNC_VIM=1;VALID_CMD=1;; b) SYNC_VIM=1;VALID_CMD=1;;
s) SYNC_CUSTOM=1;; s) SYNC_CUSTOM=1;;
c) SYNC_CONFIG=1;VALID_CMD=1;; c) SYNC_CONFIG=1;VALID_CMD=1;;
r) RECLONE=1;; r) RECLONE=1;;
*) SHOW_HELP=1;; *) echo "Invalid option: $OPT";SHOW_HELP=1;;
esac esac
done done
if [[ $SHOW_HELP = 1 ]] || [[ ! $VALID_CMD = 1 ]]; then if [[ $SHOW_HELP = 1 ]] || [[ ! $VALID_CMD = 1 ]]; then