This commit is contained in:
Dict Xiong 2022-11-15 22:59:23 +08:00
parent df9cd2042a
commit b2a1896cb9
2 changed files with 2 additions and 3 deletions

View File

@ -257,9 +257,8 @@ uninstall(){
} }
BIN=install BIN=install
ARG=""
for i in ${ARG_PARSED[@]}; do for i in ${ARG_PARSED[@]}; do
case $ARG in case $i in
-i ) BIN=install ;; -i ) BIN=install ;;
-r ) BIN=uninstall ;; -r ) BIN=uninstall ;;
-d|--dev ) export DFS_DEV=1 ;; -d|--dev ) export DFS_DEV=1 ;;

View File

@ -119,7 +119,7 @@ while [[ $# > 0 || -n "$ARG" ]]; do
ARG=-${ARG:2} ARG=-${ARG:2}
fi fi
done done
unset ARG unset ARG ORIGIN_ARG
ask_for_yN() ask_for_yN()