fix(scripts): disable MSYS path translation in migrate-local-db-to-server.sh

pg_dump inside the container failed with "could not open output file
C:/Users/.../Temp/studioflow_migration_....dump" - Git Bash/MSYS was
rewriting the /tmp/... argument into a Windows path before handing it
to docker.exe, even though it's meant to be interpreted inside the
Linux container. MSYS_NO_PATHCONV=1 stops that translation.
This commit is contained in:
2026-08-11 17:08:09 +02:00
parent b8c4cebad5
commit 0ac1ca3b08
+5
View File
@@ -16,6 +16,11 @@
set -euo pipefail
# Git Bash/MSYS auto-translates POSIX-looking path args (e.g. /tmp/foo) into
# Windows paths before handing them to docker.exe - but these paths are meant
# to be interpreted inside the Linux container, not on the Windows host.
export MSYS_NO_PATHCONV=1
# ── Fill these in ──────────────────────────────────────────────────────────
SSH_USER="${SSH_USER:-dummyuser}"
SSH_HOST="${SSH_HOST:-dummy.server.example}"