Skip to content

Fix bashisms in install.sh #440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2019
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
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ checkLatestVersion() {
elif [ "$DOWNLOAD_TOOL" = "wget" ]; then
tag=$(wget -q -O - $latest_url | grep -o "Release $regex · arduino/arduino-cli" | grep -o "$regex")
fi
if [ "x$tag" == "x" ]; then
if [ "x$tag" = "x" ]; then
echo "Cannot determine latest tag."
exit 1
fi
Expand Down Expand Up @@ -122,7 +122,7 @@ downloadFile() {
checkLatestVersion TAG
echo "TAG=$TAG"
# arduino-cli_0.4.0-rc1_Linux_64bit.[tar.gz, zip]
if [ "$OS" == "Windows" ]; then
if [ "$OS" = "Windows" ]; then
CLI_DIST="arduino-cli_${TAG}_${OS}_${ARCH}.zip"
else
CLI_DIST="arduino-cli_${TAG}_${OS}_${ARCH}.tar.gz"
Expand Down