gdritter repos verify / 7926967
Some fixes to trust/verify scripts Getty Ritter 8 years ago
2 changed file(s) with 8 addition(s) and 4 deletion(s). Collapse all Expand all
22
33 TGT=`mktemp -d`
44 cd $TGT
5 if [ ! tar -xf - ]; then
5 tar -xf - || (
66 echo "Malformed data: not a tar archive" >&2
77 cd .. && rm -rf $TGT
88 exit 111
9 elif [ ! -e ./sig ]; then
9 )
10 if [ ! -e ./sig ]; then
1011 echo "Malformed data: missing signature" >&2
1112 cd .. && rm -rf $TGT
1213 exit 111
1617 exit 111
1718 else
1819 echo "WARNING: trusting package implicitly" >&2
20 echo "In general, this is a BAD IDEA" >&2
21 echo "" >&2
1922 cat ./dat
2023 cd / && rm -rf $TGT
2124 exit 0
1616
1717 TGT=`mktemp -d`
1818 cd $TGT
19 if [ ! tar -xf - ]; then
19 tar -xf - || (
2020 echo "Malformed data: not a tar archive" >&2
2121 cd .. && rm -rf $TGT
2222 exit 111
23 elif [ ! -e ./sig ]; then
23 )
24 if [ ! -e ./sig ]; then
2425 echo "Malformed data: missing signature" >&2
2526 cd .. && rm -rf $TGT
2627 exit 111