File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 44# See https://github.com/Masterminds/glide/blob/master/LICENSE for more details
55# and copyright notice.
66
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+
717PROJECT_NAME=" arduino-cli"
818
919# BINDIR represents the local bin location, defaults to ./bin.
@@ -119,7 +129,11 @@ getFile() {
119129}
120130
121131downloadFile () {
122- checkLatestVersion TAG
132+ if [ -z $1 ]; then
133+ checkLatestVersion TAG
134+ else
135+ TAG=$1
136+ fi
123137 echo " TAG=$TAG "
124138 # arduino-cli_0.4.0-rc1_Linux_64bit.[tar.gz, zip]
125139 if [ " $OS " = " Windows" ]; then
@@ -196,6 +210,10 @@ set -e
196210initArch
197211initOS
198212initDownloadTool
199- downloadFile
213+ if [ -z " $1 " ]; then
214+ downloadFile latest
215+ else
216+ downloadFile $1
217+ fi
200218installFile
201219testVersion
You can’t perform that action at this time.
0 commit comments