mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-24 17:16:53 +08:00
install.sh: -s|--secure
This commit is contained in:
parent
8f917c4e9e
commit
986a88b1d6
|
@ -261,7 +261,8 @@ for i in ${PARSE_ARG_RET[@]}; do
|
|||
-d|--dev ) export DFS_DEV=1 ;;
|
||||
-l|--lite ) export DFS_LITE=1 ;;
|
||||
-a|--auto ) INSTALL_DEP=1 ;;
|
||||
* ) fmt_fatal "unknown option \"$i\". available: -i, -r, -q, -d, -l, -a" ;;
|
||||
-s|--secure ) export DFS_DEV=0 ;;
|
||||
* ) fmt_fatal "unknown option \"$i\". available: -i, -r, -q, -d, -l, -a, -s" ;;
|
||||
esac
|
||||
done
|
||||
$FUNC
|
||||
|
|
|
@ -109,7 +109,7 @@ parse_arg()
|
|||
while [[ $# > 0 || -n "$ARG" ]]; do
|
||||
if [[ -z "$ARG" ]]; then ARG=$1; shift; fi
|
||||
case $ARG in
|
||||
-q*|--quite ) DFS_QUIET=1 ;;
|
||||
-q*|--quite ) export DFS_QUIET=1 ;;
|
||||
--* ) PARSE_ARG_RET+=("$ARG") ;;
|
||||
-* ) PARSE_ARG_RET+=("${ARG:0:2}") ;;
|
||||
* ) PARSE_ARG_RET+=("$ARG") ;;
|
||||
|
|
Loading…
Reference in New Issue
Block a user