feat: 添加 Bash 安装检查功能

This commit is contained in:
Olia Lisa 2025-02-09 15:03:38 +08:00
parent 8f61e632f1
commit 6c97e405c9

View File

@ -1,5 +1,16 @@
#!/bin/bash
# 检查 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
}
# 显示菜单
echo "请选择一个操作:"
echo "1. 启动容器"