[jhalfs] branch trunk updated: Have install commands use the right PATH and exit if error

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <163621055051.25039.15526463151711036023@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository jhalfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new 610a5c4  Have install commands use the right PATH and exit if error
610a5c4 is described below

commit 610a5c4a0e55b7e042e939e896191c133567860c
Author: Pierre Labastie <[email protected]>
AuthorDate: Sat Nov 6 15:50:10 2021 +0100

    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
   <xsl:template name="begin-root">
     <xsl:if test="$sudo='y'">
       <xsl:text>
-sudo -E sh &lt;&lt; ROOT_EOF</xsl:text>
+sudo -E sh -e &lt;&lt; ROOT_EOF
+PATH=$PATH:/usr/sbin</xsl:text>
     </xsl:if>
   </xsl:template>
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.