Date: Tue, 25 Feb 2025 00:38:18 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: 9b65c9cdbb94 - stable/13 - shar: Make sure a sed failure in the generated archive results in failure Message-ID: <202502250038.51P0cIxr096993@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502250038.51P0cIxr096993>