fix: 打包iso镜像, 增加检查docker安装情况

This commit is contained in:
Olia Lisa
2026-07-27 11:02:54 +08:00
parent 5726119a1d
commit ec60a7bd20
+7
View File
@@ -7,6 +7,13 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd ${SCRIPT_DIR}
# 如果docker没有安装
if ! command -v docker &> /dev/null; then
curl -fsSL https://get.docker.com | bash # 使用官方脚本安装docker
success "Docker 安装完成"
fi
# 如果img-installer文件夹不存在, 下载img-installer
if [ ! -d "${SCRIPT_DIR}/img-installer" ]; then
git clone https://github.com/wukongdaily/img-installer.git