Fix -r
This commit is contained in:
parent
0ddb5f420b
commit
b574799f63
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user