From 19ab2a29ce835cf233dc23b6109c55ce7f9b754b Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 5 Oct 2016 13:03:45 +0800 Subject: [PATCH] fix tail for solaris --- acme.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 5d22b074..b3ab3d61 100755 --- a/acme.sh +++ b/acme.sh @@ -1032,7 +1032,10 @@ _head_n() { } _tail_n() { - tail -n $1 + if ! tail -n $1 2>/dev/null ; then + #fix for solaris + tail -$1 + fi } # url payload needbase64 keyfile