Skip to content

Commit b72214a

Browse files
authored
Use echo to print script errors (#1648)
1 parent 13e3fa3 commit b72214a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regtests/run_spark_sql.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ if ! output=$(curl -X POST -H "Polaris-Realm: POLARIS" "http://${POLARIS_HOST:-l
6161
-d "client_id=root" \
6262
-d "client_secret=secret" \
6363
-d "scope=PRINCIPAL_ROLE:ALL"); then
64-
logred "Error: Failed to retrieve bearer token"
64+
echo "Error: Failed to retrieve bearer token"
6565
exit 1
6666
fi
6767

6868
SPARK_BEARER_TOKEN=$(echo "$output" | awk -F\" '{print $4}')
6969

7070
if [ "SPARK_BEARER_TOKEN" == "unauthorized_client" ]; then
71-
logred "Error: Failed to retrieve bearer token"
71+
echo "Error: Failed to retrieve bearer token"
7272
exit 1
7373
fi
7474

0 commit comments

Comments
 (0)