fix tail for solaris

This commit is contained in:
neil 2016-10-05 13:03:45 +08:00
parent 24b4fe9867
commit 19ab2a29ce
1 changed files with 4 additions and 1 deletions

View File

@ -1032,7 +1032,10 @@ _head_n() {
} }
_tail_n() { _tail_n() {
tail -n $1 if ! tail -n $1 2>/dev/null ; then
#fix for solaris
tail -$1
fi
} }
# url payload needbase64 keyfile # url payload needbase64 keyfile