mirror of
https://github.com/openziti/ziti.git
synced 2026-10-13 07:41:17 +00:00
fix optind
This commit is contained in:
@@ -69,21 +69,26 @@ function main(){
|
||||
|
||||
while (( $# )); do
|
||||
case "$1" in
|
||||
--delete) deleteMiniziti 10
|
||||
shift
|
||||
-d|--delete) DELETE_MINIZITI=1
|
||||
shift
|
||||
;;
|
||||
--quiet) exec > /dev/null
|
||||
shift
|
||||
-q|--quiet) exec > /dev/null
|
||||
shift
|
||||
;;
|
||||
--verbose) exec 3>&1
|
||||
shift
|
||||
-v|--verbose|--debug)
|
||||
exec 3>&1
|
||||
shift
|
||||
;;
|
||||
--help) _usage
|
||||
exit
|
||||
*) _usage
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
(( ${DELETE_MINIZITI:-0} )) && {
|
||||
deleteMiniziti 10
|
||||
}
|
||||
|
||||
banner
|
||||
|
||||
# start unless running
|
||||
|
||||
Reference in New Issue
Block a user