ContainerImage.Pinniped/hack/update-go-mod/update-go-mod.sh
Ryan Richard 2ba378904d Bump dependencies to latest
Signed-off-by: Joshua T Casey <caseyj@vmware.com>
2023-03-28 15:15:27 -05:00

20 lines
434 B
Bash
Executable File

#!/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 )
ROOT_DIR="$SCRIPT_DIR/../.."
GO_MOD="${ROOT_DIR}/go.mod"
pushd "${SCRIPT_DIR}" > /dev/null
script=$(go run . "${GO_MOD}")
popd > /dev/null
pushd "${ROOT_DIR}" > /dev/null
eval "$script"
popd > /dev/null