From c99a14b7a6b6f02344096f44a9dc5990fd1f80e6 Mon Sep 17 00:00:00 2001 From: syui Date: Wed, 10 Dec 2025 15:33:03 +0900 Subject: [PATCH] fix install.zsh --- install.zsh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/install.zsh b/install.zsh index cf29e5e..1e1a5d3 100755 --- a/install.zsh +++ b/install.zsh @@ -361,19 +361,18 @@ function at-repos-push-reset() { } function at-repos-push-docker() { - if [ -z "$1" ];then - for ((i=1; i<=${#services}; i++)); do - service=${services[$i]} + if [ -z "$1" ] || [ "$1" = "push" ]; then + for service in "${services[@]}"; do docker tag at-${service}:latest localhost:${dport}/${service}:latest docker push localhost:${dport}/${service}:latest - if [ "$service" == "ozone" ];then - docker tag at-${service}-web:latest localhost:${dport}/${service}-web:latest - docker push localhost:${dport}/${service}-web:latest + if [ "$service" = "ozone" ]; then + docker tag at-"${service}"-web:latest localhost:"${dport}"/"${service}"-web:latest + docker push localhost:"${dport}"/"${service}"-web:latest fi done else - docker tag at-${1}:latest localhost:${dport}/${1}:latest - docker push localhost:${dport}/${1}:latest + docker tag at-"${1}":latest localhost:"${dport}"/"${1}":latest + docker push localhost:"${dport}"/"${1}":latest fi }