blob: 52d569776654b81fdebefc3a4d377b4b6e439fc1 [file] [log] [blame]
Fumitoshi Ukai27bd4e42019-10-30 04:22:37 +00001#!/usr/bin/env bash
2
3# Copyright 2019 The Chromium Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
Nodir Turakulov47a4b0b2021-05-13 23:58:10 +00007# See revert instructions in cipd_manifest.txt
8
Bruce Dawsona8065942021-06-28 19:26:39 +00009# In git bash on Windows, invoke the batch file.
10if [ "$(expr "$(uname -s)" : "^MINGW64_NT")" == "10" ]; then
11 goma_auth.bat "$@"
12 exit
13fi
14
Fumitoshi Ukai27bd4e42019-10-30 04:22:37 +000015MYPATH=$(dirname "${BASH_SOURCE[0]}")
16
17source "$MYPATH/cipd_bin_setup.sh"
18cipd_bin_setup &> /dev/null
19
Bruce Dawsona8065942021-06-28 19:26:39 +000020PYTHONDONTWRITEBYTECODE=1 exec python3 "$MYPATH/.cipd_bin/goma_auth.py" "$@"