Skip to content

Commit

Permalink
shar: Make sure a sed failure in the generated archive results in fai…
Browse files Browse the repository at this point in the history
…lure

Obtained from:	NetBSD hg commit 365369:21b92f0055b4
MFC after:	1 week
  • Loading branch information
cschuber committed Feb 18, 2025
1 parent 1080f53 commit f0c8d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr.bin/shar/shar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,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
Expand Down

0 comments on commit f0c8d2c

Please sign in to comment.