feat: option scripts and docs

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
Xinwei Xiong(cubxxw-openim)
2023-08-10 21:08:44 +08:00
parent 995e68dcae
commit ec0b9c54e1
13 changed files with 453 additions and 92 deletions
+5
View File
@@ -915,6 +915,11 @@ function openim::util::remove_space() {
result=$(echo $value | sed 's/ //g') # 去除空格
}
function openim::util::gencpu() {
cpu=$(lscpu | grep -e '^CPU(s):' | awk '{print $2}')
echo $cpu
}
function openim::util::gen_os_arch() {
# Get the current operating system and architecture
OS=$(uname -s | tr '[:upper:]' '[:lower:]')