mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 02:31:29 +00:00
Add entrypoints to luci-auth-ssh-* executables to fetch cipd packages then run the binary. Bug:b/435528916 Change-Id: Ic39b104d0ade8a65950fbbb755fa21c0b6514bb7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6864760 Auto-Submit: Jiewei Qian <qjw@chromium.org> Reviewed-by: Chenlin Fan <fancl@chromium.org> Commit-Queue: Chenlin Fan <fancl@chromium.org>
21 lines
549 B
Bash
Executable File
21 lines
549 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright 2025 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# See revert instructions in cipd_manifest.txt
|
|
|
|
# In git bash on Windows, invoke the batch file.
|
|
if [ "$(expr "$(uname -s)" : "^MINGW64_NT")" == "10" ]; then
|
|
luci-auth-ssh-plugin.bat "$@"
|
|
exit
|
|
fi
|
|
|
|
MYPATH=$(dirname "${BASH_SOURCE[0]}")
|
|
|
|
source "$MYPATH/cipd_bin_setup.sh"
|
|
CIPD_ROOT=$(cipd_bin_setup) &> /dev/null
|
|
|
|
exec "$CIPD_ROOT/luci-auth-ssh-plugin" "$@"
|