diff --git a/scripts/release-preflight.sh b/scripts/release-preflight.sh index 0c5f3e7f..63e5b3bf 100755 --- a/scripts/release-preflight.sh +++ b/scripts/release-preflight.sh @@ -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