删除函数check_bash_installed
This commit is contained in:
parent
de7d6a6b43
commit
4b4e15a7fc
@ -30,13 +30,6 @@ check_jq(){
|
||||
install_package jq
|
||||
}
|
||||
|
||||
# 检查 Bash 是否已安装
|
||||
check_bash_installed() {
|
||||
if ! command -v bash &> /dev/null; then
|
||||
echo "错误: Bash 未安装!"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
# 动态安装软件包
|
||||
install_package() {
|
||||
|
||||
@ -3,8 +3,6 @@
|
||||
script_dir="$(cd "$(dirname "$0")"; pwd)/bin" # 脚本所在目录
|
||||
source "${script_dir}/utils/base.sh"
|
||||
|
||||
# 检查bash环境是否安装
|
||||
check_bash_installed
|
||||
|
||||
install(){
|
||||
if ! command -v curl >/dev/null 2>&1; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user