Skip to content

Commit

Permalink
fix: quick installation script logical error
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Zhang <[email protected]>
  • Loading branch information
zzzhangqi committed Nov 29, 2024
1 parent 9f740cb commit 01cf66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/install-rainbond.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ if ! (docker info &>/dev/null); then
fi
fi
else
if docker ps -a | grep rainbond 2>&1 >/dev/null; then
if docker ps -a --filter "name=^rainbond$" | grep -q "rainbond"; then
if [ "$LANG" == "zh_CN.UTF-8" ]; then
send_error "rainbond 容器已存在.\n\t- 确保 rainbond 是否在运行.\n\t- 尝试执行 'docker start rainbond' 命令启动.\n\t- 或者你可以选择删除该容器 'docker rm -f rainbond'"
exit 1
Expand Down

0 comments on commit 01cf66b

Please sign in to comment.