From 0ac1ca3b08b4e1f2e8568bbacc6fc0e49f50074f Mon Sep 17 00:00:00 2001 From: Devil Date: Tue, 11 Aug 2026 17:08:09 +0200 Subject: [PATCH] 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. --- scripts/migrate-local-db-to-server.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/migrate-local-db-to-server.sh b/scripts/migrate-local-db-to-server.sh index 9ada6a5..34511a8 100644 --- a/scripts/migrate-local-db-to-server.sh +++ b/scripts/migrate-local-db-to-server.sh @@ -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}"