From 5562bf14e07235bce3a130a9c6e0bfaf21ccd7df Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Wed, 30 Sep 2020 05:43:59 +0000 Subject: [PATCH] Fix make exiting with an error if $(MOUNT_PT)/var/lib does not exist --- LFS/master.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LFS/master.sh b/LFS/master.sh index 6aae4e6..3535829 100644 --- a/LFS/master.sh +++ b/LFS/master.sh @@ -154,8 +154,9 @@ cat << EOF \$(CMDSDIR)/`dirname $file`/\$@ >> \$(LOGDIR)/\$@ 2>&1; \\ \$(PRT_DU) >>logs/\$@ @chown \$(LUSER):\$(LGROUP) envars - @[ -d "\$(MOUNT_PT)/var/lib" ] && \\ - chown \$(LUSER):\$(LGROUP) \$(MOUNT_PT)/var/lib + @if [ -d "\$(MOUNT_PT)/var/lib" ]; then \\ + chown \$(LUSER):\$(LGROUP) \$(MOUNT_PT)/var/lib; \\ + fi @chmod -R a+wt $JHALFSDIR @chmod a+wt \$(SRCSDIR) EOF