Skip to content

Commit b49db95

Browse files
committed
check_library_structure: Add example, exampel, and exampels to incorrect examples folder name check
The checks are case insensitive.
1 parent 7593e86 commit b49db95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: arduino-ci-script.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ function check_library_structure() {
14571457
fi
14581458

14591459
# Check for incorrect spelling of examples folder
1460-
if [[ $(find "$normalizedLibraryPath" -maxdepth 1 -type d -and -iregex '^.*/examples?$') && ! $(find "$normalizedLibraryPath" -maxdepth 1 -type d -and -name 'examples') ]]; then
1460+
if [[ $(find "$normalizedLibraryPath" -regextype posix-extended -maxdepth 1 -type d -and -iregex '^.*/(examples?)|(exampels?)$') && ! $(find "$normalizedLibraryPath" -maxdepth 1 -type d -and -name 'examples') ]]; then
14611461
echo "ERROR: ${normalizedLibraryPath}: Incorrect examples folder name. It should be spelled exactly \"examples\". Incorrect examples folder name will cause importing the library to Arduino Web Editor to fail and examples to not be available in Arduino Web Editor for Library Manager libraries. See: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#library-examples"
14621462
exitStatus=$(set_exit_status "$exitStatus" $ARDUINO_CI_SCRIPT_CHECK_LIBRARY_STRUCTURE_INCORRECT_EXAMPLES_FOLDER_NAME_EXIT_STATUS)
14631463
fi

0 commit comments

Comments
 (0)