summaryrefslogtreecommitdiff
path: root/unrpyc/find-gzip.sh
diff options
context:
space:
mode:
Diffstat (limited to 'unrpyc/find-gzip.sh')
-rwxr-xr-xunrpyc/find-gzip.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/unrpyc/find-gzip.sh b/unrpyc/find-gzip.sh
new file mode 100755
index 0000000..26e60c0
--- /dev/null
+++ b/unrpyc/find-gzip.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+ZOPFLI="$(command -v zopfli)"
+GZIP="$(command -v gzip)"
+if [ -n $ZOPFLI ]; then
+ echo "$ZOPFLI"
+elif [ -n $GZIP ]; then
+ echo "$GZIP -9"
+else
+ exit 1
+fi