summaryrefslogtreecommitdiff
path: root/unrpyc/find-gzip.sh
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-03-06 17:02:37 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-03-06 17:02:37 -0500
commit69890d17a01426cf7de8b6aa1dc64b56dfb7449d (patch)
tree13bf9039b1ca051dfc39193eaf48e74393a5a096 /unrpyc/find-gzip.sh
parentcbb002ff60c33d6c4bfcaad42c8df1cfda8f7ea3 (diff)
downloadhtml5ks-69890d17a01426cf7de8b6aa1dc64b56dfb7449d.tar.xz
html5ks-69890d17a01426cf7de8b6aa1dc64b56dfb7449d.zip
meh
Diffstat (limited to 'unrpyc/find-gzip.sh')
-rwxr-xr-xunrpyc/find-gzip.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/unrpyc/find-gzip.sh b/unrpyc/find-gzip.sh
index 2c2e51d..c9e8e00 100755
--- a/unrpyc/find-gzip.sh
+++ b/unrpyc/find-gzip.sh
@@ -1,9 +1,10 @@
#!/bin/sh
if command -v zopfli; then
:
-elif command -v gzip; 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