1
0
mirror of https://github.com/hiskaNG/acme.sh.git synced 2026-08-17 03:13:00 +00:00

fix tail for solaris

This commit is contained in:
neil
2016-10-05 13:03:45 +08:00
parent 24b4fe9867
commit 19ab2a29ce
+4 -1
View File
@@ -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