From cd23ab256629cdb40836aea5da15260662576543 Mon Sep 17 00:00:00 2001 From: Ian Henry Date: Sun, 28 Nov 2021 09:01:58 -0800 Subject: [PATCH] do not invoke local in a loop --- sd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sd b/sd index b4aa1d1..0f0afb7 100755 --- a/sd +++ b/sd @@ -128,9 +128,10 @@ sd() ( set -euo pipefail local target=${SD_ROOT:-$HOME/sd} + local arg while [[ $# -gt 0 ]]; do - local arg="$1" + arg="$1" if [[ -d "$target/$arg" ]]; then target="$target/$arg" shift