summaryrefslogtreecommitdiff
path: root/unrpyc/find-gzip.sh
blob: c70b75a48015a64987b3e1d87778ddedea46a25b (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
if command -v zopfli; then
  :
elif G=$(command -v gzip); [ -n "$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