Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
# See https://github.com/Masterminds/glide/blob/master/LICENSE for more details
# and copyright notice.

#
# Usage:
#
# To install the latest version of the CLI:
# ./install.sh
#
# To pin a specific release of the CLI:
# ./install.sh 0.9.0
#

PROJECT_NAME="arduino-cli"

# BINDIR represents the local bin location, defaults to ./bin.
Expand Down Expand Up @@ -119,7 +129,11 @@ getFile() {
}

downloadFile() {
checkLatestVersion TAG
if [ -z $1 ]; then
checkLatestVersion TAG
else
TAG=$1
fi
echo "TAG=$TAG"
# arduino-cli_0.4.0-rc1_Linux_64bit.[tar.gz, zip]
if [ "$OS" = "Windows" ]; then
Expand Down Expand Up @@ -196,6 +210,6 @@ set -e
initArch
initOS
initDownloadTool
downloadFile
downloadFile $1
installFile
testVersion