From 79f6160234808edf5afd04793546877267f420f2 Mon Sep 17 00:00:00 2001 From: syui Date: Fri, 20 Feb 2026 08:24:35 +0900 Subject: [PATCH] fix install.zsh --- install.zsh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/install.zsh b/install.zsh index f4924d3..daba88e 100755 --- a/install.zsh +++ b/install.zsh @@ -394,10 +394,19 @@ function at-repos-docker-verify() { plc) check_file="/app/packages/server/dist/index.js" ;; *) return 0 ;; esac - if docker run --rm "$image" test -f "$check_file" 2>/dev/null; then + local cid + cid=$(docker create --entrypoint "" "$image" true 2>&1) + if [ $? -ne 0 ]; then + echo " ❌ FAILED: cannot create container from $image" + echo " $cid" + return 1 + fi + if docker cp "$cid:$check_file" /dev/null 2>/dev/null; then + docker rm "$cid" > /dev/null 2>&1 echo " ✅ Verified: $check_file exists" return 0 else + docker rm "$cid" > /dev/null 2>&1 echo " ❌ FAILED: $check_file not found in $image" return 1 fi