From e64f3d8a954ebceee18da2be796a2dba295f5c94 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 1 Jul 2014 13:15:46 +0200 Subject: [PATCH] xbps-src: make sure XBPS_CONFIG_FILE is set. --- common/xbps-src/shutils/chroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/chroot.sh b/common/xbps-src/shutils/chroot.sh index a42d509c18..124be5ab5b 100644 --- a/common/xbps-src/shutils/chroot.sh +++ b/common/xbps-src/shutils/chroot.sh @@ -12,7 +12,7 @@ XBPS_CPPFLAGS="$XBPS_CPPFLAGS" XBPS_LDFLAGS="$XBPS_LDFLAGS" XBPS_HOSTDIR=/host _EOF - if [ -e $XBPS_CONFIG_FILE ]; then + if [ -n "$XBPS_CONFIG_FILE" -a -e $XBPS_CONFIG_FILE ]; then grep -E '^XBPS_.*' $XBPS_CONFIG_FILE >> $XBPSSRC_CF fi