From be3fe84afee53fe8fdef9c3f4980c75c1cddb183 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 1 Jun 2013 23:17:31 -0600 Subject: conf.sh: fix leaked local variables --- src/lib/conf.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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" -- cgit v1.2.3-54-g00ecf