[jhalfs] branch trunk updated: Don't add >> $TEST_LOG if already redirecting to an absolute path

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <172475745932.14058.12758695834516584683@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository jhalfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new 0e2c6bc  Don't add >> $TEST_LOG if already redirecting to an absolute path
0e2c6bc is described below

commit 0e2c6bc47826a4a3790334c1206dcd02125d3d41
Author: Xi Ruoyao <[email protected]>
AuthorDate: Tue Aug 27 19:15:37 2024 +0800

    Don't add >> $TEST_LOG if already redirecting to an absolute path
    
    One example of such a command is
    
        echo 'NAME="Linux From Scratch"' > /etc/os-release
    
    in systemd.  If adding >> $TEST_LOG we'll not create the /etc/os-release
    files and test failures will happen.
---
 LFS/lfs.xsl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl
index 946bc86..a29919c 100644
--- a/LFS/lfs.xsl
+++ b/LFS/lfs.xsl
@@ -1166,6 +1166,7 @@ LOGLEVEL="</xsl:text>
             <xsl:value-of select="$instructions"/>
             <xsl:if
               test="not(contains($instructions, '&gt;&gt;')) and
+                    not(contains($instructions, '&gt; /')) and
                     not($eof-seen) and
                     substring($instructions,
                               string-length($instructions)) != '\'">

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.