Skip to content

Commit

Permalink
fix slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
jayconrod committed Aug 23, 2024
1 parent 3ef2f4a commit f54acc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion infra/login.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ readonly ENGFLOW_AUTH_VERSION=v0.0.5
readonly TOOLS_DIR=$(pwd)/_tools
readonly ENGFLOW_AUTH_URL="https://github.com/EngFlow/auth/releases/download/${ENGFLOW_AUTH_VERSION}/engflow_auth_${OS}_${ARCH}"
if [[ "${OS}" == "windows" ]]; then
# On Windows, ensure engflow_auth has an .exe extension. Use an absolute
# Windows path with forward slashes (C:/a/b), NOT a cygwin path (/c/a/b),
# and NOT backslashes (C:\a\b). Bazel only accepts the first form.
readonly ENGFLOW_AUTH_EXT=.exe
readonly ENGFLOW_AUTH_PATH="$(cygpath --windows "${TOOLS_DIR}/engflow_auth.exe")"
readonly ENGFLOW_AUTH_PATH="$(cygpath --mixed "${TOOLS_DIR}/engflow_auth.exe")"
else
readonly ENGFLOW_AUTH_PATH="${TOOLS_DIR}/engflow_auth"
fi
Expand Down

0 comments on commit f54acc5

Please sign in to comment.