Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Exit script if schema creation fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
lauravuo committed Jan 29, 2024
1 parent c5d9083 commit 9abd29c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/onboard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ if [ -z "$E2E_CRED_DEF_ID" ]; then
echo "Read schema"
schema=$(findy-agent-cli agent get-schema --jwt $org_jwt --schema-id $sch_id --timeout $read_timeout)

if [ -z "$schema" ]; then
echo "Schema creation failed."
exit 1
fi

echo "Schema read successfully: $schema"

# create cred def
Expand Down

0 comments on commit 9abd29c

Please sign in to comment.