Browse Source

fix https://github.com/acmesh-official/acme.sh/issues/4798

neil 2 years ago
parent
commit
59f976dc48
1 changed files with 1 additions and 6 deletions
  1. 1 6
      acme.sh

+ 1 - 6
acme.sh

@@ -2118,12 +2118,7 @@ _tail_n() {
 }
 
 _tail_c() {
-  if _is_solaris; then
-    #fix for solaris
-    tail -"$1"c
-  else
-    tail -c "$1"
-  fi
+  tail -c "$1" 2>/dev/null || tail -"$1"c
 }
 
 # url  payload needbase64  keyfile