From 986a88b1d680bdc9965772f341e4f45ecf6fc4d7 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Sun, 27 Nov 2022 17:25:29 +0800 Subject: [PATCH] install.sh: -s|--secure --- install.sh | 3 ++- tools/common.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index a2a5fc3..11a1e9a 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/tools/common.sh b/tools/common.sh index 4a1ac94..c192ab4 100755 --- a/tools/common.sh +++ b/tools/common.sh @@ -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") ;;