Clossing dumped scripts with a plain "exit" to prevent && at the end of the file when the last <screen> block is a non dumped block.
This commit is contained in:
parent
7bbd436739
commit
816f3f43ee
1 changed files with 6 additions and 7 deletions
|
@ -50,6 +50,7 @@
|
||||||
<xsl:text>cd $PKGDIR &&
</xsl:text>
|
<xsl:text>cd $PKGDIR &&
</xsl:text>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:apply-templates select=".//para/userinput | .//screen"/>
|
<xsl:apply-templates select=".//para/userinput | .//screen"/>
|
||||||
|
<xsl:text>exit</xsl:text>
|
||||||
</exsl:document>
|
</exsl:document>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
@ -60,13 +61,6 @@
|
||||||
<xsl:when test="@role = 'nodump'"/>
|
<xsl:when test="@role = 'nodump'"/>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:apply-templates select="userinput" mode="screen"/>
|
<xsl:apply-templates select="userinput" mode="screen"/>
|
||||||
<xsl:if test="position() != last() and
|
|
||||||
not(contains(string(),'EOF')) and
|
|
||||||
not(contains(string(),'check')) and
|
|
||||||
not(ancestor::sect1[@id='ch-tools-stripping'])">
|
|
||||||
<xsl:text> &&</xsl:text>
|
|
||||||
</xsl:if>
|
|
||||||
<xsl:text>
</xsl:text>
|
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
@ -92,6 +86,11 @@
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
<xsl:if test="not(contains(string(),'EOF')) and
|
||||||
|
not(contains(string(),'check'))">
|
||||||
|
<xsl:text> &&</xsl:text>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:text>
</xsl:text>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="replaceable">
|
<xsl:template match="replaceable">
|
||||||
|
|
Reference in a new issue