diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-01 23:17:31 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-05 20:01:06 -0600 |
commit | be3fe84afee53fe8fdef9c3f4980c75c1cddb183 (patch) | |
tree | 0b0ee7d67258e9b1198987607dd80b0871f0a7e5 | |
parent | fc311685bbc0a87dbdcd355a52ab923af5a8da48 (diff) |
conf.sh: fix leaked local variables
-rw-r--r-- | src/lib/conf.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/conf.sh b/src/lib/conf.sh index 845f4c1..e68c9b8 100644 --- a/src/lib/conf.sh +++ b/src/lib/conf.sh @@ -79,6 +79,7 @@ check_vars() { local slug=$1 shift local ret=0 + local VAR for VAR in "$@"; do if [[ -z ${!VAR:-} ]]; then if [[ $(list_files $slug|wc -l) > 1 ]]; then @@ -109,6 +110,7 @@ get_conf_makepkg() ( set_conf_makepkg() { local key=$1 local val=$2 + local file for file in $(list_files makepkg|tac); do if [[ -w $file ]]; then sed -i "/^\s*$key=/d" "$file" |