2023-03-01 22:18:25 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Copyright 2023 the Pinniped contributors. All Rights Reserved.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
2023-03-28 20:15:27 +00:00
|
|
|
ROOT_DIR="$SCRIPT_DIR/../.."
|
2023-03-01 22:18:25 +00:00
|
|
|
|
2023-03-28 20:15:27 +00:00
|
|
|
GO_MOD="${ROOT_DIR}/go.mod"
|
2023-03-01 22:18:25 +00:00
|
|
|
|
|
|
|
pushd "${SCRIPT_DIR}" > /dev/null
|
2023-03-28 20:15:27 +00:00
|
|
|
script=$(go run . "${GO_MOD}")
|
|
|
|
popd > /dev/null
|
|
|
|
|
|
|
|
pushd "${ROOT_DIR}" > /dev/null
|
|
|
|
eval "$script"
|
2023-03-01 22:18:25 +00:00
|
|
|
popd > /dev/null
|