fix(deploy): resolve TARGET_DIR to absolute path in update.sh

This commit is contained in:
2026-06-24 12:29:00 +09:00
parent 5da6e59d2f
commit b47fcbda9b
+6 -5
View File
@@ -26,6 +26,12 @@ done
if [ -z "$TARGET_DIR" ]; then
TARGET_DIR="$(pwd)"
else
if [ ! -d "$TARGET_DIR" ]; then
echo "❌ Error: Target directory '$TARGET_DIR' does not exist." >&2
exit 1
fi
TARGET_DIR="$(cd "$TARGET_DIR" && pwd)"
fi
echo "===================================================================="
@@ -33,11 +39,6 @@ echo "⚡ Starting Multi-Agent Mux (MAM) Update"
echo "📂 Target Workspace: $TARGET_DIR"
echo "===================================================================="
if [ ! -d "$TARGET_DIR" ]; then
echo "❌ Error: Target directory '$TARGET_DIR' does not exist." >&2
exit 1
fi
cd "$TARGET_DIR"
# 1. Verification of existing install