删除函数check_bash_installed

This commit is contained in:
Olia Lisa 2026-01-14 22:34:04 +08:00
parent de7d6a6b43
commit 4b4e15a7fc
2 changed files with 0 additions and 9 deletions

View File

@ -30,13 +30,6 @@ check_jq(){
install_package jq install_package jq
} }
# 检查 Bash 是否已安装
check_bash_installed() {
if ! command -v bash &> /dev/null; then
echo "错误: Bash 未安装!"
return 1
fi
}
# 动态安装软件包 # 动态安装软件包
install_package() { install_package() {

View File

@ -3,8 +3,6 @@
script_dir="$(cd "$(dirname "$0")"; pwd)/bin" # 脚本所在目录 script_dir="$(cd "$(dirname "$0")"; pwd)/bin" # 脚本所在目录
source "${script_dir}/utils/base.sh" source "${script_dir}/utils/base.sh"
# 检查bash环境是否安装
check_bash_installed
install(){ install(){
if ! command -v curl >/dev/null 2>&1; then if ! command -v curl >/dev/null 2>&1; then