Skip to content

Commit 5802e9b

Browse files
authored
Merge pull request #46 from O2Graphics/fix-posix-shell
Replace bash with sh
2 parents 7f12de9 + 097327d commit 5802e9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# This file is part of WiFi101 Updater Arduino-IDE Plugin.
44
# Copyright 2016 Arduino LLC (http://www.arduino.cc/)
@@ -31,7 +31,7 @@ ZIP_FILENAME=WiFi101-Updater-ArduinoIDE-Plugin-$REV
3131
REQUIRED_JARS="pde.jar arduino-core.jar jssc-2.8.0-arduino3.jar bcpg-jdk15on-152.jar bcprov-jdk15on-152.jar commons-lang3-3.8.1.jar commons-codec-1.7.jar"
3232

3333
# Check existence of the IDE folder
34-
if [[ -z "$IDE_FOLDER" ]]; then
34+
if [ -z "$IDE_FOLDER" ]; then
3535
echo ""
3636
echo "Please set variable IDE_FOLDER to the path of the installed Arduino IDE"
3737
echo "For example:"
@@ -48,7 +48,7 @@ for JAR in $REQUIRED_JARS; do
4848
darwin*) JARFILE="$IDE_FOLDER/Java/$JAR" ;;
4949
*) JARFILE="$IDE_FOLDER/lib/$JAR" ;;
5050
esac
51-
if [[ -z "$JARFILE" ]]; then
51+
if [ -z "$JARFILE" ]; then
5252
echo "Could not find $JARFILE library in you IDE folder."
5353
exit 1
5454
fi

0 commit comments

Comments
 (0)