From a5e726c4ec5b6cd95c1e87bf86fa7da8c996d232 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 30 Jun 2014 11:52:52 +0200 Subject: [PATCH] xbps-src: copy XBPS_* settings from etc/conf only if the file exists. --- common/xbps-src/shutils/chroot.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/chroot.sh b/common/xbps-src/shutils/chroot.sh index 13d1dbc06c..5e57c0db39 100644 --- a/common/xbps-src/shutils/chroot.sh +++ b/common/xbps-src/shutils/chroot.sh @@ -11,7 +11,9 @@ XBPS_CXXFLAGS="$XBPS_CXXFLAGS" XBPS_CPPFLAGS="$XBPS_CPPFLAGS" XBPS_LDFLAGS="$XBPS_LDFLAGS" _EOF - grep -E '^XBPS_.*' $XBPS_CONFIG_FILE >> $XBPSSRC_CF + if [ -e $XBPS_CONFIG_FILE ]; then + grep -E '^XBPS_.*' $XBPS_CONFIG_FILE >> $XBPSSRC_CF + fi echo "# End of configuration file." >> $XBPSSRC_CF