BLFS: Wrap root commads into single quotes instead of double quotes. This avoid to conflict with doble quotes used in the book to create here documents.
This commit is contained in:
parent
d09e32ad28
commit
7c6c3556d2
1 changed files with 2 additions and 2 deletions
|
@ -447,11 +447,11 @@ mv ../${sect_ver}.md5.orig ../${sect_ver}.md5
</xsl:text>
|
|||
<xsl:template match="screen">
|
||||
<xsl:if test="child::* = userinput and not(@role = 'nodump')">
|
||||
<xsl:if test="@role = 'root' and $sudo = 'y'">
|
||||
<xsl:text>sudo sh -c "</xsl:text>
|
||||
<xsl:text>sudo sh -c '</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:apply-templates select="userinput"/>
|
||||
<xsl:if test="@role = 'root' and $sudo = 'y'">
|
||||
<xsl:text>"</xsl:text>
|
||||
<xsl:text>'</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:text>
</xsl:text>
|
||||
</xsl:if>
|
||||
|
|
Reference in a new issue