fix(release): preserve Windows preflight paths

This commit is contained in:
key
2026-08-04 22:48:18 +08:00
parent 09adb458c7
commit d3d214efb3
+6
View File
@@ -4,6 +4,12 @@ set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
# Keep POSIX-looking remote arguments opaque when this read-only check is run
# from Git for Windows. On Linux the environment variable is harmless.
ssh() {
MSYS_NO_PATHCONV=1 command ssh "$@"
}
fail() {
echo "release-preflight: $*" >&2
exit 1