Skip to content

Commit

Permalink
ci: support instructions.md file (#2203)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Feb 20, 2023
1 parent 89237c5 commit 3bd102f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bin/check_required_files_present
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,20 @@ function require_file {
fi
}

function require_file_or_alternative {
filename=$1
alternative_filename=$2
if [ ! -f $filename ] && [ ! -f $alternative_filename ]; then
echo "required file missing: $filename or $alternate_filename" >&2
let "MISSING_FILES+=1"
fi
}

function check_directory {
directory=$1
for exercise_directory in $directory/* ; do
show_progress
require_file "$exercise_directory/description.md"
require_file_or_alternative "$exercise_directory/description.md" "$exercise_directory/instructions.md"
require_file "$exercise_directory/metadata.toml"
done

Expand Down

0 comments on commit 3bd102f

Please sign in to comment.