Browse Source

fix https://github.com/Neilpang/acme.sh/issues/1127

neilpang 7 years ago
parent
commit
b615cce92d
2 changed files with 2 additions and 3 deletions
  1. 1 1
      Dockerfile
  2. 1 2
      acme.sh

+ 1 - 1
Dockerfile

@@ -1,4 +1,4 @@
-FROM alpine
+FROM alpine:3.6
 
 RUN apk update -f \
   && apk --no-cache add -f \

+ 1 - 2
acme.sh

@@ -463,8 +463,7 @@ if _exists xargs && [ "$(printf %s '\\x41' | xargs printf)" = 'A' ]; then
 fi
 
 _h2b() {
-  if _exists xxd; then
-    xxd -r -p
+  if _exists xxd && xxd -r -p 2>/dev/null; then
     return
   fi