格式化代码, 增加注释
This commit is contained in:
parent
4532785d20
commit
0662a71930
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
restart_docker() {
|
||||
# 如果容器未运行,提示启动
|
||||
local running_count=$(docker-compose -f ./docker-compose.yml ps -q | wc -l)
|
||||
if [ "$running_count" -eq 0 ]; then
|
||||
read -p "容器未启动,是否启动容器?(Y/N): " choice
|
||||
|
||||
Loading…
Reference in New Issue
Block a user