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 f0c8d2cd62)
This commit is contained in:
parent
b006133ca1
commit
6a4a1a2385
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue