mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-25 03:01:18 -08:00
make gocross-wrapper.sh nicer to cygwin and mingw users
Signed-off-by: Aaron Klotz <[email protected]>
This commit is contained in:
1 parent
569abe639e
commit
794e01ec6c
1 file changed
+3
-2
@@ -16,8 +16,9 @@ if [[ "${CI:-}" == "true" && "${NOBASHDEBUG:-}" != "true" ]]; then
|
||||
fi
|
||||
|
||||
if [[ "${OSTYPE:-}" == "cygwin" || "${OSTYPE:-}" == "msys" ]]; then
|
||||
echo "You're running on Windows: use go.cmd instead." >&2
|
||||
exit 1
|
||||
hash pwsh 2>/dev/null || { echo >&2 "This operation requires PowerShell Core."; exit 1; }
|
||||
pwsh -NoProfile -ExecutionPolicy Bypass "${BASH_SOURCE%/*}/gocross-wrapper.ps1" "$@"
|
||||
exit
|
||||
fi
|
||||
|
||||
# Locate a bootstrap toolchain and (re)build gocross if necessary. We run all of
|
||||
|
||||
Reference in new issue
Block a user