Commit d9504b6b authored by Itoh Shimon's avatar Itoh Shimon Committed by Massimiliano Pippi

Fix bashisms in install.sh (#440)

`[  ... == ...  ]` is Bash extension. install.sh should use syntax of
standard `test` command.
parent 94a5eebb
......@@ -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
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment