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.
This commit is contained in:
Pierre Labastie 2021-11-06 15:50:10 +01:00
parent 59c4761950
commit 610a5c4a0e

View file

@ -484,7 +484,8 @@ echo Time before test: ${SECONDS} >> $INFOLOG
<xsl:template name="begin-root"> <xsl:template name="begin-root">
<xsl:if test="$sudo='y'"> <xsl:if test="$sudo='y'">
<xsl:text> <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:if>
</xsl:template> </xsl:template>