From 97db5c1fb920b59003b094208ce29cb702e93d6b Mon Sep 17 00:00:00 2001 From: Nils Date: Sun, 28 Nov 2021 17:03:11 +0100 Subject: [PATCH] fix error with -n --- conn.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/conn.sh b/conn.sh index b756bde..46bc97e 100755 --- a/conn.sh +++ b/conn.sh @@ -56,14 +56,13 @@ function run_update { function prepare { #check_update - get_args $@ + get_args "$@" set_argvars $args validate $input } function get_args { - input=$(echo "$@") - echo $input + input=$(echo " $@") args=$(echo "$input" | grep -o -e "-h" -e "--help" -e "-6" -e "--force-ipv6" -e "-4" -e "--force-ipv4" -e "-y" -e "--yes" -e "-n" -e "--no" -e "-w" -e "--wait" -e "-u" -e "--update" -e "-f" -e "--fast" -e "-s" -e "--simple" | xargs) for arg in $args; do input=$(echo "$input" | sed "s/$arg//g")