Update bash-function: Skip shift if no args

pull/1013/head
Elan Ruusamäe 6 months ago committed by GitHub
parent 4137424b70
commit 99a5f9995f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save