From 6a836fcdc58032e3c896c5fa21ffe829a80e3c9c Mon Sep 17 00:00:00 2001 From: darkclip Date: Tue, 2 Jan 2024 16:35:33 +0800 Subject: [PATCH] update --- wg-watch.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/wg-watch.sh b/wg-watch.sh index 3b82e10c..4e698798 100755 --- a/wg-watch.sh +++ b/wg-watch.sh @@ -274,11 +274,8 @@ ENDPOINTS=''; PUB_KEY='bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo='; TEST_RUN=false; DRY_RUN=false; -while getopts ":h46i:c:a:l:p:e:k:td" opt; do - case $opt in - h) - usage; - exit;; +while getopts ":46i:c:a:l:p:e:k:td" OPT; do + case $OPT in 4) FAMILY=4; ;; @@ -317,6 +314,7 @@ while getopts ":h46i:c:a:l:p:e:k:td" opt; do exit 1;; ?) echo "Invalid Option: -$OPTARG"; + usage; exit 1;; esac; done;