Fix error for shell scripts

This commit is contained in:
Stille 2021-08-06 15:54:42 +08:00
parent 1f996d45ab
commit 9342e67557
2 changed files with 4 additions and 4 deletions

View File

@ -25,8 +25,8 @@
---
## 更新
**2021-07-01** 更新一键安装脚本同时支持 X86 和 ARM 架构.
**2021-06-18** 更新一键安装脚本.
- **2021-07-01** 更新一键安装脚本同时支持 X86 和 ARM 架构.
- **2021-06-18** 更新一键安装脚本.
## 一键安装脚本
一键安装脚本支持以下四种模式,请根据自身情况选择.

View File

@ -356,8 +356,8 @@ up (){
}
if [ ! type docker >/dev/null 2>&1 ] || [ ! type docker-compose >/dev/null 2>&1 ]; then
echo -e "${Red}本机未安装 docker 或 docker compose 已退出脚本.${Font}";
if ! type docker-compose >/dev/null 2>&1 ; then
echo -e "${Red}本机未安装 docker compose 已退出脚本.${Font}";
exit 0
fi