Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ function download_bazelisk() {
Darwin*)
local os="darwin"
;;
MSYS*)
local os="windows"
local ext=".exe"
;;
*)
echo "bazelisk: unsupported os $uname_os"
exit 128
Expand All @@ -36,7 +40,7 @@ function download_bazelisk() {
exit 128
esac

local url="https://github.com/bazelbuild/bazelisk/releases/download/v$_BZ_VERSION/bazelisk-$os-$cpu"
local url="https://github.com/bazelbuild/bazelisk/releases/download/v$_BZ_VERSION/bazelisk-$os-$cpu$ext"
echo "bazelisk: downloading $url to $_BZ_PATH"
curl --proto '=https' --tlsv1.2 -sSfL -o "$_BZ_PATH" "$url"
chmod +x "$_BZ_PATH"
Expand Down