You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously it was possible for these to match versions they were not intended to match. This caused 1.6.10-1.6.13 to match when the intent was to match 1.5.0-1.6.3.
# Check if the newest installed IDE version supports --install-boards
524
-
local -r unsupportedInstallBoardsOptionVersionsRange1regex="1.5.[0-9]"
525
-
local -r unsupportedInstallBoardsOptionVersionsRange2regex="1.6.[0-3]"
524
+
local -r unsupportedInstallBoardsOptionVersionsRange1regex="^1\.5\.[0-9]$"
525
+
local -r unsupportedInstallBoardsOptionVersionsRange2regex="^1\.6\.[0-3]$"
526
526
if [[ "$NEWEST_INSTALLED_IDE_VERSION"=~$unsupportedInstallBoardsOptionVersionsRange1regex||"$NEWEST_INSTALLED_IDE_VERSION"=~$unsupportedInstallBoardsOptionVersionsRange2regex ]];then
527
527
echo"ERROR: --install-boards option is not supported by the newest version of the Arduino IDE you have installed. You must have Arduino IDE 1.6.4 or newer installed to use this function."
# Check if the newest installed IDE version supports --install-library
639
-
local -r unsupportedInstallLibraryOptionVersionsRange1regex="1.5.[0-9]"
640
-
local -r unsupportedInstallLibraryOptionVersionsRange2regex="1.6.[0-3]"
639
+
local -r unsupportedInstallLibraryOptionVersionsRange1regex="^1\.5\.[0-9]$"
640
+
local -r unsupportedInstallLibraryOptionVersionsRange2regex="^1\.6\.[0-3]$"
641
641
if [[ "$NEWEST_INSTALLED_IDE_VERSION"=~$unsupportedInstallLibraryOptionVersionsRange1regex||"$NEWEST_INSTALLED_IDE_VERSION"=~$unsupportedInstallLibraryOptionVersionsRange2regex ]];then
642
642
echo"ERROR: --install-library option is not supported by the newest version of the Arduino IDE you have installed. You must have Arduino IDE 1.6.4 or newer installed to use this function."
# The package_index files installed by some versions of the IDE (1.6.5, 1.6.5) can cause compilation to fail for other versions (1.6.5-r4, 1.6.5-r5). Attempting to install a dummy package ensures that the correct version of those files will be installed before the sketch verification.
766
766
# Check if the newest installed IDE version supports --install-boards
767
-
local unsupportedInstallBoardsOptionVersionsRange1regex="1.5.[0-9]"
768
-
local unsupportedInstallBoardsOptionVersionsRange2regex="1.6.[0-3]"
767
+
local unsupportedInstallBoardsOptionVersionsRange1regex="^1\.5\.[0-9]$"
768
+
local unsupportedInstallBoardsOptionVersionsRange2regex="^1\.6\.[0-3]$"
0 commit comments