Browse Source

fix tail for solaris

neil 8 years ago
parent
commit
19ab2a29ce
1 changed files with 4 additions and 1 deletions
  1. 4 1
      acme.sh

+ 4 - 1
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