Fumitoshi Ukai | 27bd4e4 | 2019-10-30 04:22:37 +0000 | [diff] [blame] | 1 | #!/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 Turakulov | 47a4b0b | 2021-05-13 23:58:10 +0000 | [diff] [blame] | 7 | # See revert instructions in cipd_manifest.txt |
| 8 | |
Bruce Dawson | a806594 | 2021-06-28 19:26:39 +0000 | [diff] [blame] | 9 | # In git bash on Windows, invoke the batch file. |
| 10 | if [ "$(expr "$(uname -s)" : "^MINGW64_NT")" == "10" ]; then |
| 11 | goma_auth.bat "$@" |
| 12 | exit |
| 13 | fi |
| 14 | |
Fumitoshi Ukai | 27bd4e4 | 2019-10-30 04:22:37 +0000 | [diff] [blame] | 15 | MYPATH=$(dirname "${BASH_SOURCE[0]}") |
| 16 | |
| 17 | source "$MYPATH/cipd_bin_setup.sh" |
| 18 | cipd_bin_setup &> /dev/null |
| 19 | |
Bruce Dawson | a806594 | 2021-06-28 19:26:39 +0000 | [diff] [blame] | 20 | PYTHONDONTWRITEBYTECODE=1 exec python3 "$MYPATH/.cipd_bin/goma_auth.py" "$@" |