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:
parent
59c4761950
commit
610a5c4a0e
1 changed files with 2 additions and 1 deletions
|
@ -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 << ROOT_EOF</xsl:text>
|
||||
sudo -E sh -e << ROOT_EOF
|
||||
PATH=$PATH:/usr/sbin</xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
|
|
Reference in a new issue