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.
14 lines
171 B
Bash
14 lines
171 B
Bash
9 years ago
|
#!/bin/bash
|
||
|
|
||
|
PIXZ=../src/pixz
|
||
|
|
||
|
INPUT=$(mktemp)
|
||
|
trap "rm -f $INPUT $INPUT.xz" EXIT
|
||
|
|
||
|
chmod 600 $INPUT
|
||
|
echo foo > $INPUT
|
||
|
|
||
|
$PIXZ $INPUT
|
||
|
|
||
|
[[ $(stat -c "%a" $INPUT.xz) = 600 ]]
|