Skip to content

Commit

Permalink
fix: restore PATH variable at end of execution
Browse files Browse the repository at this point in the history
  • Loading branch information
aranjans committed May 9, 2024
1 parent eb40292 commit 5878795
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/regenerate.sh
Expand Up @@ -21,11 +21,12 @@ function finish {
rm -rf "$WORKDIR"
# Revert back the PATH to client's original value
export PATH=$RESTORED_PATH
echo "Restored PATH to older value: $PATH"
}
trap finish EXIT

GOBIN="${WORKDIR}"/bin
RESTORED_PATH=PATH
RESTORED_PATH=$PATH
export PATH="${GOBIN}:${PATH}"
mkdir -p "${GOBIN}"

Expand Down
1 change: 0 additions & 1 deletion scripts/vet-proto.sh
Expand Up @@ -23,7 +23,6 @@ if [[ "$1" = "-install" ]]; then
if [[ "${GITHUB_ACTIONS}" = "true" ]]; then
PROTOBUF_VERSION=25.2 # Shows up in pb.go files as v4.22.0
PROTOC_FILENAME=protoc-${PROTOBUF_VERSION}-linux-x86_64.zip
chmod +x ./scripts/install_protoc.sh
source ./scripts/install_protoc.sh "/home/runner/go"
else
# TODO: replace with install protoc when https://github.com/grpc/grpc-go/pull/7064 is merged.
Expand Down

0 comments on commit 5878795

Please sign in to comment.