The branch stable/14 has been updated by cy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=6a4a1a238523d5640f474fd2775163275ac466f4

commit 6a4a1a238523d5640f474fd2775163275ac466f4
Author:     Cy Schubert <[email protected]>
AuthorDate: 2025-01-02 03:44:18 +0000
Commit:     Cy Schubert <[email protected]>
CommitDate: 2025-02-25 00:37:46 +0000

    shar: Make sure a sed failure in the generated archive results in failure
    
    Obtained from:  NetBSD hg commit 365369:21b92f0055b4
    MFC after:      1 week
    
    (cherry picked from commit f0c8d2cd622a47e06c08620a10e13ad7519e9102)
---
 usr.bin/shar/shar.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/shar/shar.sh b/usr.bin/shar/shar.sh
index f7496716acba..97e7768da6c7 100644
--- a/usr.bin/shar/shar.sh
+++ b/usr.bin/shar/shar.sh
@@ -71,7 +71,7 @@ do
                md5sum=`echo -n "$i" | md5`
                echo "echo x - '$i'"
                echo "sed 's/^X//' >'$i' << '$md5sum'"
-               sed 's/^/X/' "$i" || exit
+               sed 's/^/X/' "$i" || exit 1
                echo "$md5sum"
        fi
 done

Reply via email to