blob: 334388742cd10d8b2849c74475f0f9bc3436c084 [file] [log] [blame]
Brian Silvermanbd7860e2020-01-05 17:52:40 -08001#!/bin/bash
2
3# --- begin runfiles.bash initialization v2 ---
4# Copy-pasted from the Bazel Bash runfiles library v2.
5set -uo pipefail; f=bazel_tools/tools/bash/runfiles/runfiles.bash
6source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \
7 source "$(grep -sm1 "^$f " "${RUNFILES_MANIFEST_FILE:-/dev/null}" | cut -f2- -d' ')" 2>/dev/null || \
8 source "$0.runfiles/$f" 2>/dev/null || \
9 source "$(grep -sm1 "^$f " "$0.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || \
10 source "$(grep -sm1 "^$f " "$0.exe.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || \
11 { echo>&2 "ERROR: cannot find $f"; exit 1; }; f=; set -e
12# --- end runfiles.bash initialization v2 ---
13
James Kuszmaulc6ea63a2023-09-06 20:36:46 -070014LIB_PATH="$(rlocation ssh/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1)"
15LIB_PATH="${LIB_PATH%/libcrypto.so.1.1}"
Brian Silvermanbd7860e2020-01-05 17:52:40 -080016export LD_LIBRARY_PATH="${LIB_PATH}"
17
18TOOL_PATH="$(rlocation ssh/%(TOOL))"
19
20exec "${TOOL_PATH}" "$@"