From 90c6d7107d98002f3f131e19bc81fb7a8e271f5e Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 17 Apr 2022 07:14:45 +0200 Subject: [PATCH] urlhandler: make ret local variable --- .local/bin/urlhandler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/urlhandler b/.local/bin/urlhandler index 4f40d80..1d41083 100755 --- a/.local/bin/urlhandler +++ b/.local/bin/urlhandler @@ -9,7 +9,7 @@ zmodload zsh/zutil local -a o_help=() zparseopts -D -K -- h=o_help if [[ ${#o_help} -ne 0 || ! -v 1 ]]; then - ret=$(( ${#o_help} ^ 1 )) + local ret=$(( ${#o_help} ^ 1 )) print -u $(( 1 + ${ret} )) "usage: ${0} [-h] …" return ${ret} fi