Skip to content

Commit

Permalink
OCM-10852 | fix: fix bash syntax error in prow_ci.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yasun1 committed Sep 2, 2024
1 parent 4512bea commit d8c4d95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/prow_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ override_rosacli_build () {
# usage: configure_aws <aws file path> <region>
configure_aws () {
# configure aws region
if [[ -z "$1"]] || [[ -z "$2" ]]; then
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "ERROR: aws credential file path and region is required. Please call command like $ configure_aws <credential path> <region>"
exit 1
fi
Expand Down Expand Up @@ -155,7 +155,8 @@ generate_running_cmd () {
if [ -z $JUNIT_XML ]; then
echo "JUNIT_XML is empty, please define it and call generate_junit to generate the value"
exit 1
fi [ -z $TEST_TIMEOUT ]; then
fi
if [ -z $TEST_TIMEOUT ]; then
# set a default value in case it is empty
TEST_TIMEOUT="4h"
fi
Expand Down

0 comments on commit d8c4d95

Please sign in to comment.