From 610a5c4a0e55b7e042e939e896191c133567860c Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sat, 6 Nov 2021 15:50:10 +0100 Subject: [PATCH] Have install commands use the right PATH and exit if error Hopefully the present commit fixes those problems: - use sh -e instead of sh - set PATH to $PATH (which will expand to the PATH before entering sudo) before the install commands. --- BLFS/xsl/process-install.xsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BLFS/xsl/process-install.xsl b/BLFS/xsl/process-install.xsl index 41a4030..017aa31 100644 --- a/BLFS/xsl/process-install.xsl +++ b/BLFS/xsl/process-install.xsl @@ -484,7 +484,8 @@ echo Time before test: ${SECONDS} >> $INFOLOG -sudo -E sh << ROOT_EOF +sudo -E sh -e << ROOT_EOF +PATH=$PATH:/usr/sbin