git: 9b65c9cdbb94 - stable/13 - shar: Make sure a sed failure in the generated archive results in failure
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Feb 2025 00:38:18 UTC
The branch stable/13 has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=9b65c9cdbb9419ea987a08b6aaa1e51e54bb52d0
commit 9b65c9cdbb9419ea987a08b6aaa1e51e54bb52d0
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2025-01-02 03:44:18 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-02-25 00:38:10 +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