From e526f3df818ea21760c5eeb4e2f728845bb93140 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Wed, 21 Aug 2013 12:55:52 -0400 Subject: continue work on i18n --- unrpyc/find-gzip.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'unrpyc/find-gzip.sh') diff --git a/unrpyc/find-gzip.sh b/unrpyc/find-gzip.sh index 2ee9064..cb65dc9 100755 --- a/unrpyc/find-gzip.sh +++ b/unrpyc/find-gzip.sh @@ -1,13 +1,11 @@ #!/bin/sh -ZOPFLI="$(command -v zopfli)" -GZIP="$(command -v gzip)" -if [ -n $ZOPFLI ]; then - echo "$ZOPFLI" -elif [ -n $GZIP ]; then +if command -v zopfli; then + printf "%s" "$(command -v zopfli)" +elif command -v gzip; then echo >&2 "Consider obtaining zopfli (https://code.google.com/p/zopfli/)" echo >&2 "for higher compression ratios (about 5% decrease in size of" - echo >&2 "script.json.gz." - echo "$GZIP -9" + echo >&2 "script.json.gz)." + printf "%s" "$(command -v gzip) -9" else echo >&2 "Could not find zopfli or gzip, aborting." exit 1 -- cgit v1.2.3-54-g00ecf