summaryrefslogtreecommitdiff
path: root/unrpyc/find-gzip.sh
blob: c9e8e007a5263108c439c3c54abea96ed1957d81 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
if command -v zopfli; then
  :
elif G=$(command -v gzip); [[ "$G" ]]; then
  echo >&2 "Consider obtaining zopfli (https://github.com/Hello71/zopfli) for higher"
  echo >&2 "compression ratios (about 5% decrease in size of script.json.gz)."
  echo "$G" -9
else
  echo >&2 "Could not find zopfli or gzip, aborting."
  exit 1
fi