xbps-src: chroot.sh: XBPS_CONFIG_FILE could be unset, handle it.
This commit is contained in:
parent
6c5c1eb060
commit
71f0a912ef
|
@ -12,7 +12,7 @@ XBPS_CPPFLAGS="$XBPS_CPPFLAGS"
|
||||||
XBPS_LDFLAGS="$XBPS_LDFLAGS"
|
XBPS_LDFLAGS="$XBPS_LDFLAGS"
|
||||||
XBPS_HOSTDIR=/host
|
XBPS_HOSTDIR=/host
|
||||||
_EOF
|
_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
|
grep -E '^XBPS_.*' $XBPS_CONFIG_FILE >> $XBPSSRC_CF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue