Ver Fonte

fix tail for solaris

neil há 9 anos atrás
pai
commit
19ab2a29ce
1 ficheiros alterados com 4 adições e 1 exclusões
  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