Skip to content

Commit

Permalink
fail if USER not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
gargnitingoogle committed Sep 27, 2024
1 parent 8bad3ad commit a65c1c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions perfmetrics/scripts/testing_on_gke/examples/run-automated.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ set -x
# Fail if any command fails.
set -e

# Environment variable USER must be defined.
if test -z ${USER}; then
echo "USER has not been set"
exit 1
fi

# Define configuration parameters.
if test -z ${project_id}; then
echo "project_id has not been set."
Expand Down

0 comments on commit a65c1c9

Please sign in to comment.