Changeset 1504208 for BLFS


Ignore:
Timestamp:
06/18/2006 12:41:38 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
3b63c8c
Parents:
07eac51
Message:

Trying to fix commands that need be run as root.
Need be verified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/libs/scripts.xsl

    r07eac51 r1504208  
    338338
    339339  <xsl:template match="screen">
    340     <xsl:if test="child::* = userinput">
    341       <xsl:choose>
    342         <xsl:when test="@role = 'nodump'"/>
    343         <xsl:otherwise>
    344           <xsl:if test="@role = 'root'">
    345             <xsl:text>sudo </xsl:text>
    346           </xsl:if>
    347           <xsl:apply-templates select="userinput" mode="screen"/>
    348         </xsl:otherwise>
    349       </xsl:choose>
     340    <xsl:if test="child::* = userinput and not(@role = 'nodump')">
     341      <xsl:if test="@role = 'root'">
     342        <xsl:text>sudo sh -c "</xsl:text>
     343      </xsl:if>
     344      <xsl:apply-templates select="userinput"/>
     345      <xsl:if test="@role = 'root'">
     346        <xsl:text>"</xsl:text>
     347      </xsl:if>
     348      <xsl:text>&#xA;</xsl:text>
    350349    </xsl:if>
    351350  </xsl:template>
     
    362361  </xsl:template>
    363362
    364   <xsl:template match="userinput" mode="screen">
     363  <xsl:template match="userinput">
    365364    <xsl:apply-templates/>
    366     <xsl:text>&#xA;</xsl:text>
    367365  </xsl:template>
    368366
Note: See TracChangeset for help on using the changeset viewer.