From: neil Date: Wed, 20 Sep 2023 10:07:16 +0000 (+0800) Subject: fix https://github.com/acmesh-official/acme.sh/issues/4798 X-Git-Tag: 3.0.7~1^2 X-Git-Url: https://git.proxmox.com/?p=mirror_acme.sh.git;a=commitdiff_plain;h=59f976dc48873787d089df34c3ebc092a14bc110 fix https://github.com/acmesh-official/acme.sh/issues/4798 --- diff --git a/acme.sh b/acme.sh index 067780d7..bce7a41d 100755 --- a/acme.sh +++ b/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