mirror of
https://github.com/teddysun/lamp.git
synced 2026-04-13 08:18:55 +00:00
update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user