Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/verify-exercises
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ required_tool() {

required_tool jq

copy_example_or_examplar_to_solution() {
copy_example_or_exemplar_to_solution() {
jq -c '[.files.solution, .files.exemplar // .files.example] | transpose | map({src: .[1], dst: .[0]}) | .[]' .meta/config.json \
| while read -r src_and_dst; do
cp "$(jq -r '.src' <<< "${src_and_dst}")" "$(jq -r '.dst' <<< "${src_and_dst}")"
Expand Down Expand Up @@ -68,7 +68,7 @@ verify_exercise() {
cp -r "${dir}/." "${tmp_dir}"
cd "${tmp_dir}"

copy_example_or_examplar_to_solution
copy_example_or_exemplar_to_solution
unskip_tests
run_tests
)
Expand Down
4 changes: 2 additions & 2 deletions bin/verify-exercises-in-docker
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ required_tool() {

required_tool docker

copy_example_or_examplar_to_solution() {
copy_example_or_exemplar_to_solution() {
jq -c '[.files.solution, .files.exemplar // .files.example] | transpose | map({src: .[1], dst: .[0]}) | .[]' .meta/config.json \
| while read -r src_and_dst; do
cp "$(jq -r '.src' <<< "${src_and_dst}")" "$(jq -r '.dst' <<< "${src_and_dst}")"
Expand Down Expand Up @@ -66,7 +66,7 @@ verify_exercise() {
cp -r "${dir}/." "${tmp_dir}"
cd "${tmp_dir}"

copy_example_or_examplar_to_solution
copy_example_or_exemplar_to_solution
run_tests "${slug}"
)
}
Expand Down
Loading