File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 4
4
# See https://github.com/Masterminds/glide/blob/master/LICENSE for more details
5
5
# and copyright notice.
6
6
7
+ #
8
+ # Usage:
9
+ #
10
+ # To install the latest version of the CLI:
11
+ # ./install.sh
12
+ #
13
+ # To pin a specific release of the CLI:
14
+ # ./install.sh 0.9.0
15
+ #
16
+
7
17
PROJECT_NAME=" arduino-cli"
8
18
9
19
# BINDIR represents the local bin location, defaults to ./bin.
@@ -119,7 +129,11 @@ getFile() {
119
129
}
120
130
121
131
downloadFile () {
122
- checkLatestVersion TAG
132
+ if [ -z $1 ]; then
133
+ checkLatestVersion TAG
134
+ else
135
+ TAG=$1
136
+ fi
123
137
echo " TAG=$TAG "
124
138
# arduino-cli_0.4.0-rc1_Linux_64bit.[tar.gz, zip]
125
139
if [ " $OS " = " Windows" ]; then
@@ -196,6 +210,6 @@ set -e
196
210
initArch
197
211
initOS
198
212
initDownloadTool
199
- downloadFile
213
+ downloadFile $1
200
214
installFile
201
215
testVersion
You can’t perform that action at this time.
0 commit comments