mirror of https://github.com/vasi/pixz
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
281 B
Bash
15 lines
281 B
Bash
9 years ago
|
#!/bin/bash
|
||
|
|
||
|
PIXZ=../src/pixz
|
||
|
|
||
|
INPUT=$(basename $0)
|
||
|
|
||
|
COMPRESSED=$INPUT.xz
|
||
|
UNCOMPRESSED=$INPUT.extracted
|
||
|
trap "rm -f $COMPRESSED $UNCOMPRESSED" EXIT
|
||
|
|
||
|
$PIXZ $INPUT $COMPRESSED
|
||
|
$PIXZ -d $COMPRESSED $UNCOMPRESSED
|
||
|
|
||
|
[[ $(cat $INPUT | md5sum) = $(cat $UNCOMPRESSED | md5sum) ]] || exit 1
|