summaryrefslogtreecommitdiffstats
path: root/tests/brokenuncompressor.sh
blob: 42ea32a02698915bb851218d5fdb57a7c90a860f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
if [ $# -ne 0 ] ; then
	echo "brokenuncompressor.sh: Wrong number of arguments: $#" >&2
	exit 17
fi
$uncompressor
if test -f breakon2nd ; then
	rm breakon2nd
	exit 0;
fi
# Breaking an .lzma stream is hard, faking it is more reproduceable...
echo "brokenuncompressor.sh: claiming broken archive" >&2
exit 1