From 3a3b0dd5c1b5a8d9ec7c45f42194c5ae56a44cf8 Mon Sep 17 00:00:00 2001 From: neilpang Date: Wed, 21 Dec 2016 20:38:14 +0800 Subject: [PATCH] fix https://github.com/Neilpang/acme.sh/issues/481 --- acme.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index a4375033..aefc0155 100755 --- a/acme.sh +++ b/acme.sh @@ -3977,7 +3977,10 @@ _installOnline() { fi ( _info "Extracting $localname" - tar xzf $localname + if ! (tar xzf $localname || gtar xzf $localname); then + _err "Extraction error." + exit 1 + fi cd "$PROJECT_NAME-$BRANCH" chmod +x $PROJECT_ENTRY