Skip to content

Commit d9504b6

Browse files
shimon1024Massimiliano Pippi
authored and
Massimiliano Pippi
committed
Fix bashisms in install.sh (#440)
`[ ... == ... ]` is Bash extension. install.sh should use syntax of standard `test` command.
1 parent 94a5eeb commit d9504b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ checkLatestVersion() {
7878
elif [ "$DOWNLOAD_TOOL" = "wget" ]; then
7979
tag=$(wget -q -O - $latest_url | grep -o "Release $regex · arduino/arduino-cli" | grep -o "$regex")
8080
fi
81-
if [ "x$tag" == "x" ]; then
81+
if [ "x$tag" = "x" ]; then
8282
echo "Cannot determine latest tag."
8383
exit 1
8484
fi
@@ -122,7 +122,7 @@ downloadFile() {
122122
checkLatestVersion TAG
123123
echo "TAG=$TAG"
124124
# arduino-cli_0.4.0-rc1_Linux_64bit.[tar.gz, zip]
125-
if [ "$OS" == "Windows" ]; then
125+
if [ "$OS" = "Windows" ]; then
126126
CLI_DIST="arduino-cli_${TAG}_${OS}_${ARCH}.zip"
127127
else
128128
CLI_DIST="arduino-cli_${TAG}_${OS}_${ARCH}.tar.gz"

0 commit comments

Comments
 (0)