From b2a1896cb9918f37d1cf22eddbe1e21f442fe108 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Tue, 15 Nov 2022 22:59:23 +0800 Subject: [PATCH] bug fix --- install.sh | 3 +-- tools/common.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 6cf0c65..e8eddc1 100755 --- a/install.sh +++ b/install.sh @@ -257,9 +257,8 @@ uninstall(){ } BIN=install -ARG="" for i in ${ARG_PARSED[@]}; do - case $ARG in + case $i in -i ) BIN=install ;; -r ) BIN=uninstall ;; -d|--dev ) export DFS_DEV=1 ;; diff --git a/tools/common.sh b/tools/common.sh index ef277fc..c47e904 100755 --- a/tools/common.sh +++ b/tools/common.sh @@ -119,7 +119,7 @@ while [[ $# > 0 || -n "$ARG" ]]; do ARG=-${ARG:2} fi done -unset ARG +unset ARG ORIGIN_ARG ask_for_yN()