Commit 66331bb
authored
[skip changelog] [skip ci] Fix installation script's latest tag determination code (#772)
GitHub changed the HTML of the release page, which resulted in grep finding multiple instances of the pattern, causing the installation script to fail when no version parameter was provided:
$ curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
Installing in /home/per/temporary/bin
ARCH=64bit
OS=Linux
Using curl as download tool
TAG=0.11.0
0.11.0
0.11.0
CLI_DIST=arduino-cli_0.11.0
0.11.0
0.11.0_Linux_64bit.tar.gz
Downloading https://downloads.arduino.cc/arduino-cli/arduino-cli_0.11.0
0.11.0
0.11.0_Linux_64bit.tar.gz
Failed to install arduino-cli
The chosen fix was to expand the grep pattern to something that should only ever occur once on an HTML page.1 parent fff99af commit 66331bb
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments