@@ -1232,20 +1232,20 @@ function check_folder_name() {
1232
1232
# Starting folder name with a - or . is not allowed
1233
1233
local -r startsWithInvalidCharacterRegex=" ^[-.]"
1234
1234
if [[ " $folderName " =~ $startsWithInvalidCharacterRegex ]]; then
1235
- echo " ERROR: Invalid folder name: ${folderName} . Folder name beginning with a - or . is not allowed."
1235
+ echo " Invalid folder name: ${folderName} . Folder name beginning with a - or . is not allowed."
1236
1236
exitStatus=$( set_exit_status " $exitStatus " $ARDUINO_CI_SCRIPT_CHECK_FOLDER_NAME_INVALID_FIRST_CHARACTER_EXIT_STATUS )
1237
1237
fi
1238
1238
1239
1239
# Allowed characters: a-z, A-Z, 0-1, -._
1240
1240
local -r disallowedCharactersRegex=" [^a-zA-Z0-9._-]"
1241
1241
if [[ " $folderName " =~ $disallowedCharactersRegex ]]; then
1242
- echo " ERROR: Invalid folder name: ${folderName} . Only letters, numbers, dots, dashes, and underscores are allowed."
1242
+ echo " Invalid folder name: ${folderName} . Only letters, numbers, dots, dashes, and underscores are allowed."
1243
1243
exitStatus=$( set_exit_status " $exitStatus " $ARDUINO_CI_SCRIPT_CHECK_FOLDER_NAME_INVALID_CHARACTER_EXIT_STATUS )
1244
1244
fi
1245
1245
1246
1246
# <64 characters
1247
1247
if [[ ${# folderName} -gt 63 ]]; then
1248
- echo " ERROR: Folder name $folderName exceeds the maximum of 63 characters."
1248
+ echo " Folder name $folderName exceeds the maximum of 63 characters."
1249
1249
exitStatus=$( set_exit_status " $exitStatus " $ARDUINO_CI_SCRIPT_CHECK_FOLDER_NAME_TOO_LONG_EXIT_STATUS )
1250
1250
fi
1251
1251
return " $exitStatus "
@@ -1347,6 +1347,7 @@ function check_sketch_structure() {
1347
1347
check_folder_name " $sketchPath "
1348
1348
local checkFolderNameExitStatus=$?
1349
1349
if [[ $checkFolderNameExitStatus -ne $ARDUINO_CI_SCRIPT_SUCCESS_EXIT_STATUS ]]; then
1350
+ echo " ERROR: ${sketchPath} : Invalid folder name."
1350
1351
exitStatus=$( set_exit_status " $exitStatus " $(( ARDUINO_CI_SCRIPT_CHECK_SKETCH_STRUCTURE_CHECK_FOLDER_NAME_OFFSET + checkFolderNameExitStatus)) )
1351
1352
fi
1352
1353
@@ -1435,6 +1436,7 @@ function check_library_structure() {
1435
1436
check_folder_name " $normalizedLibraryPath "
1436
1437
local checkFolderNameExitStatus=$?
1437
1438
if [[ $checkFolderNameExitStatus -ne $ARDUINO_CI_SCRIPT_SUCCESS_EXIT_STATUS ]]; then
1439
+ echo " ERROR: ${normalizedLibraryPath} : Invalid folder name."
1438
1440
exitStatus=$( set_exit_status " $exitStatus " $(( ARDUINO_CI_SCRIPT_CHECK_LIBRARY_STRUCTURE_CHECK_FOLDER_NAME_OFFSET + checkFolderNameExitStatus)) )
1439
1441
fi
1440
1442
0 commit comments