fix error with -n

This commit is contained in:
Nils 2021-11-28 17:03:11 +01:00
parent def8538bac
commit 97db5c1fb9
Signed by: byreqz
GPG Key ID: 396A62D7D436749E
1 changed files with 2 additions and 3 deletions

View File

@ -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")