Make declared variables global
When variables use the 'declare' directive, it is by default a local variable. While other variables have global scope. For example: declare -A AN_ARRAY # local in scope foo=1 # global in scope This causes errors to occur as some of the variables will be local only and others will be global. Update the code, as appropriate, so that variables using the 'declare' directive also include the '-g' flag to have them also be global. Not every instance of a declared variable has been updated. Closes-Bug: #1669509 Co-Authored-By: John L. Villalovos <john.l.villalovos@intel.com> Change-Id: I2180b68fe861ad19c6d4ec0df0f9f8a528347862
This commit is contained in:
committed by
John L. Villalovos
parent
6f23555c95
commit
afef8bf097
Reference in New Issue
Block a user