This commit is contained in:
Teddysun
2016-08-22 23:10:18 +09:00
parent 75020c188d
commit 7fa4c25788

View File

@@ -423,6 +423,18 @@ version_lt(){
test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" != "$1"
}
version_gt(){
test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" != "$1"
}
version_le(){
test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" == "$1"
}
version_ge(){
test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" == "$1"
}
parallel_make(){
local para=$1
cpunum=`cat /proc/cpuinfo |grep 'processor'|wc -l`
@@ -523,7 +535,6 @@ check_command_exist(){
fi
}
#Install tools
install_tool(){
if check_sys packageManager apt;then
@@ -656,7 +667,6 @@ get_php_version(){
$phpConfig --version | cut -d'.' -f1-2
}
#Last confirm
last_confirm(){
clear