From 9a895bc7e4c925658a9c57681437000445f399ed Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Tue, 27 Mar 2018 01:09:41 +0200 Subject: Make variables local --- functions/utilities.zsh | 1 + 1 file changed, 1 insertion(+) (limited to 'functions/utilities.zsh') diff --git a/functions/utilities.zsh b/functions/utilities.zsh index a9559922..7451ebf0 100755 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -39,6 +39,7 @@ printSizeHumanReadable() { # if the base is not Bytes if [[ -n $2 ]]; then + local idx for idx in "${extension[@]}"; do if [[ "$2" == "$idx" ]]; then break -- cgit v1.2.3