Date: Tue, 25 Feb 2025 00:37:58 GMT From: Cy Schubert <cy@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 6a4a1a238523 - stable/14 - shar: Make sure a sed failure in the generated archive results in failure Message-ID: <202502250037.51P0bwQt096690@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=6a4a1a238523d5640f474fd2775163275ac466f4 commit 6a4a1a238523d5640f474fd2775163275ac466f4 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: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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502250037.51P0bwQt096690>