feat: 添加 Bash 安装检查函数
This commit is contained in:
parent
626f561b3f
commit
8f61e632f1
@ -41,4 +41,14 @@ check_jq(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# 检查 Bash 是否已安装
|
||||||
|
check_bash_installed() {
|
||||||
|
if command -v bash &> /dev/null; then
|
||||||
|
echo "Bash 已安装"
|
||||||
|
return 0 # 返回 0 表示 Bash 已安装
|
||||||
|
else
|
||||||
|
echo "Bash 未安装"
|
||||||
|
return 1 # 返回 1 表示 Bash 未安装
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user