Files
chromium_depot_tools/luci-auth-ssh-plugin
Jiewei Qian fad3730e80 add luci-auth-ssh-* entrypoints
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>
2025-08-19 23:29:32 -07:00

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" "$@"