Make variables local

This commit is contained in:
Dominik Ritter 2018-03-27 01:09:41 +02:00
commit 9a895bc7e4
3 changed files with 8 additions and 5 deletions

View file

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