xbps-src: chroot.sh: XBPS_CONFIG_FILE could be unset, handle it.

This commit is contained in:
Juan RP 2014-07-01 18:47:39 +02:00
parent 6c5c1eb060
commit 71f0a912ef
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ XBPS_CPPFLAGS="$XBPS_CPPFLAGS"
XBPS_LDFLAGS="$XBPS_LDFLAGS"
XBPS_HOSTDIR=/host
_EOF
if [ -n "$XBPS_CONFIG_FILE" -a -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