From e464928a1bc5e1d647fac7f836bcd66550f2633e Mon Sep 17 00:00:00 2001 From: primardj Date: Mon, 25 Mar 2024 00:34:48 +0000 Subject: [PATCH] complete verbose option --- network_control.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/network_control.sh b/network_control.sh index db502a4..16cad37 100755 --- a/network_control.sh +++ b/network_control.sh @@ -37,6 +37,10 @@ print_version() { echo "$(basename $0) v.${version}" } +set_verbose() { + verbose=1 +} + # first, test if there is help, version, or verbose args. for i in "$@"; do case "$i" in @@ -54,4 +58,5 @@ for i in "$@"; do esac done +(( verbose )) && echo "verbose is set"