Skip to content

Commit de16460

Browse files
committed
Fail sketch build if invalid IDE versions were specified
1 parent 675325a commit de16460

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arduino-ci-script.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,11 @@ function build_sketch()
690690

691691
generate_ide_version_list_array "$INSTALLED_IDE_VERSION_LIST_ARRAY" "$startIDEversion" "$endIDEversion"
692692

693+
if [[ "$ARDUINO_CI_SCRIPT_GENERATED_IDE_VERSION_LIST_ARRAY" == "$ARDUINO_CI_SCRIPT_IDE_VERSION_LIST_ARRAY_DECLARATION"'()' ]]; then
694+
echo "ERROR: The IDE version(s) specified are not installed"
695+
return_handler "$ARDUINO_CI_SCRIPT_FAILURE_EXIT_STATUS"
696+
fi
697+
693698
eval "$ARDUINO_CI_SCRIPT_GENERATED_IDE_VERSION_LIST_ARRAY"
694699
local IDEversion
695700
for IDEversion in "${IDEversionListArray[@]}"; do

0 commit comments

Comments
 (0)