Merge pull request #791 from dritter/local_variables

Make variables local
This commit is contained in:
Ben Hilburn 2018-04-13 21:58:10 -04:00 committed by GitHub
commit 7234d52ebd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 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