Skip to content

Commit

Permalink
fixup! refactor indexer-sync.sh (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerboy448 committed Jun 14, 2024
1 parent 9db0aab commit 4f583c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/indexer-sync-v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ determine_schema_version() {
npx ajv test -d "$def_file" -s "$schema" --valid -c ajv-formats --spec=draft2019
test_output=$?

if $test_output; then
if [ "$test_output" = 0 ]; then
log "INFO" "Definition [$def_file] matches schema [$schema]"
else
check_version="v0"
Expand All @@ -72,7 +72,7 @@ determine_best_schema_version() {
npx ajv test -d "$def_file" -s "$schema" --valid -c ajv-formats --spec=draft2019
test_output=$?

if $test_output; then
if [ "$test_output" = 0 ]; then
log "INFO" "Definition [$def_file] matches schema [$schema]"
matched_version=$i
export matched_version
Expand Down

0 comments on commit 4f583c5

Please sign in to comment.