diff --git a/share/bash-function.txt b/share/bash-function.txt index f25cd92..0bbb414 100644 --- a/share/bash-function.txt +++ b/share/bash-function.txt @@ -20,7 +20,7 @@ fi wttr() { local location="${1// /+}" - shift + test "$#" -gt 0 && shift local args="" for p in $WTTR_PARAMS "$@"; do args+=" --data-urlencode $p "