5 Apr
2017
5 Apr
'17
11:06 p.m.
-declare -a install_pkgs -declare -i ret=0 + declare -a install_pkgs + declare -i ret=0
By using declare here, you're scoping the variables to the function.
You are, of course, correct. I'm submitting a revised patch that adds the `-g` flag to `declare`. Also, as I mention in the revised commit message, you may wish to get rid of the init_variables() function, and move that bit into the main() function; which would make the concern go away. -- Happy hacking, ~ Luke Shumaker