summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/conf.sh2
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"