Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Aug 27, 2024
1 parent 2ffc642 commit c296421
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ all_directories+=$(discover_directories "$TESTS_DIR")

EXAMPLE_DIRECTORIES=$(cat << END
[
{path: "HERE/hello_world", name: "bitcoin_psbt", type: "ex"},
{path: "HERE/hello_world2", name: "express", type: "e2e", "syntax": "http"},
{path: "HERE/hello_world3", name: "int", type: "prop", "syntax": "crpc", "api": "class"}
"HERE/hello_world",
"HERE/hello_world2",
"HERE/hello_world3"
]
END
)
Expand All @@ -106,7 +106,7 @@ while read -r dir; do
json_result+=$(generate_json_new "$dir")
json_result+=","
fi
done <<< "$(echo "$all_directories" | sort)" # Feed sorted directories into the loop
done <<< "$(echo "$EXAMPLE_DIRECTORIES" | sort)" # Feed sorted directories into the loop

# Remove the last comma and close the JSON array
json_result=$(echo "$json_result" | sed '$ s/,$//')
Expand Down

0 comments on commit c296421

Please sign in to comment.