summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-30 16:12:37 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-30 16:12:37 -0500
commitb9dbed0ae6709351dd244c87581c2d558a9d129f (patch)
tree665a9975c79c2e17498351d41456714a370d9140 /src
parenta7b7e36af2ca02449770cb77c5f017d638872d8e (diff)
libremakepkg: fix bug in makepkg_conf_get
Diffstat (limited to 'src')
-rwxr-xr-xsrc/chroot-tools/libremakepkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index f06bb17..deb26b2 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -65,7 +65,7 @@ makepkg_conf_get() {
if [[ -z ${!setting:-} ]]; then
eval $(grep "^$setting=" "/etc/makepkg.conf")
fi
- if [[ -z ${!setting:-} && -n ${2} ]]; then
+ if [[ -z ${!setting:-} && -n ${2:-} ]]; then
eval "$setting='$2'"
fi
}