ai/at
1
0

fix install.zsh

This commit is contained in:
2026-02-20 07:30:40 +09:00
parent c9dd10d6f3
commit 1690aa4c12
2 changed files with 13 additions and 2 deletions

View File

@@ -394,10 +394,21 @@ 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" /tmp/.docker-verify-tmp 2>/dev/null; then
rm -f /tmp/.docker-verify-tmp
docker rm "$cid" > /dev/null 2>&1
echo " ✅ Verified: $check_file exists"
return 0
else
rm -f /tmp/.docker-verify-tmp
docker rm "$cid" > /dev/null 2>&1
echo " ❌ FAILED: $check_file not found in $image"
return 1
fi