Skip to content

Commit

Permalink
Fix "Failed to install arduino-cli" when invoked by install.sh (#2380)
Browse files Browse the repository at this point in the history
  • Loading branch information
brentru authored Oct 20, 2023
1 parent 710ecba commit b82a519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ initDownloadTool() {
checkLatestVersion() {
# Use the GitHub releases webpage to find the latest version for this project
# so we don't get rate-limited.
CHECKLATESTVERSION_REGEX="v?[0-9][A-Za-z0-9\.-]*"
CHECKLATESTVERSION_REGEX="v\?[0-9][A-Za-z0-9\.-]*"
CHECKLATESTVERSION_LATEST_URL="https://github.com/${PROJECT_OWNER}/${PROJECT_NAME}/releases/latest"
if [ "$DOWNLOAD_TOOL" = "curl" ]; then
CHECKLATESTVERSION_TAG=$(curl -SsL $CHECKLATESTVERSION_LATEST_URL | grep -o "<title>Release $CHECKLATESTVERSION_REGEX · ${PROJECT_OWNER}/${PROJECT_NAME}" | grep -o "$CHECKLATESTVERSION_REGEX")
Expand Down

0 comments on commit b82a519

Please sign in to comment.