File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -442,6 +442,12 @@ function install_package()
442
442
local -r packageID=" $1 "
443
443
local -r packageURL=" $2 "
444
444
445
+ # Check if Arduino IDE is installed
446
+ if [[ " $INSTALLED_IDE_VERSION_LIST_ARRAY " == " " ]]; then
447
+ echo " ERROR: Installing a hardware package via Boards Manager requires the Arduino IDE to be installed. Please call install_ide before this command."
448
+ return " $ARDUINO_CI_SCRIPT_FAILURE_EXIT_STATUS "
449
+ fi
450
+
445
451
# Check if the newest installed IDE version supports --install-boards
446
452
local -r unsupportedInstallBoardsOptionVersionsRange1regex=" 1.5.[0-9]"
447
453
local -r unsupportedInstallBoardsOptionVersionsRange2regex=" 1.6.[0-3]"
@@ -531,6 +537,13 @@ function install_library()
531
537
532
538
else
533
539
# Install a library that is part of the Library Manager index
540
+
541
+ # Check if Arduino IDE is installed
542
+ if [[ " $INSTALLED_IDE_VERSION_LIST_ARRAY " == " " ]]; then
543
+ echo " ERROR: Installing a library via Library Manager requires the Arduino IDE to be installed. Please call install_ide before this command."
544
+ return " $ARDUINO_CI_SCRIPT_FAILURE_EXIT_STATUS "
545
+ fi
546
+
534
547
# Check if the newest installed IDE version supports --install-library
535
548
local -r unsupportedInstallLibraryOptionVersionsRange1regex=" 1.5.[0-9]"
536
549
local -r unsupportedInstallLibraryOptionVersionsRange2regex=" 1.6.[0-3]"
You can’t perform that action at this time.
0 commit comments