@@ -33,7 +33,7 @@ initDestination() {
3333 LBINDIR=" $BINDIR "
3434 else
3535 if [ ! -d " $DEFAULT_BINDIR " ]; then
36- mkdir " $DEFAULT_BINDIR "
36+ mkdir " $DEFAULT_BINDIR "
3737 fi
3838 LBINDIR=" $DEFAULT_BINDIR "
3939 fi
@@ -43,33 +43,33 @@ initDestination() {
4343initArch () {
4444 ARCH=$( uname -m)
4545 case $ARCH in
46- armv5* ) ARCH=" armv5" ;;
47- armv6* ) ARCH=" ARMv6" ;;
48- armv7* ) ARCH=" ARMv7" ;;
49- aarch64) ARCH=" ARM64" ;;
50- x86) ARCH=" 32bit" ;;
51- x86_64) ARCH=" 64bit" ;;
52- i686) ARCH=" 32bit" ;;
53- i386) ARCH=" 32bit" ;;
46+ armv5* ) ARCH=" armv5" ;;
47+ armv6* ) ARCH=" ARMv6" ;;
48+ armv7* ) ARCH=" ARMv7" ;;
49+ aarch64) ARCH=" ARM64" ;;
50+ x86) ARCH=" 32bit" ;;
51+ x86_64) ARCH=" 64bit" ;;
52+ i686) ARCH=" 32bit" ;;
53+ i386) ARCH=" 32bit" ;;
5454 esac
5555 echo " ARCH=$ARCH "
5656}
5757
5858initOS () {
5959 OS=$( uname -s)
6060 case " $OS " in
61- Linux* ) OS=' Linux' ;;
62- Darwin* ) OS=' macOS' ;;
63- MINGW* ) OS=' Windows' ;;
64- MSYS* ) OS=' Windows' ;;
61+ Linux* ) OS=' Linux' ;;
62+ Darwin* ) OS=' macOS' ;;
63+ MINGW* ) OS=' Windows' ;;
64+ MSYS* ) OS=' Windows' ;;
6565 esac
6666 echo " OS=$OS "
6767}
6868
6969initDownloadTool () {
70- if type " curl" > /dev/null; then
70+ if type " curl" > /dev/null; then
7171 DOWNLOAD_TOOL=" curl"
72- elif type " wget" > /dev/null; then
72+ elif type " wget" > /dev/null; then
7373 DOWNLOAD_TOOL=" wget"
7474 else
7575 fail " You need curl or wget as download tool. Please install it first before continuing"
@@ -106,7 +106,7 @@ get() {
106106 body=$( echo " $httpResponse " | sed -e ' s/HTTPSTATUS\:.*//g' )
107107 elif [ " $DOWNLOAD_TOOL " = " wget" ]; then
108108 tmpFile=$( mktemp)
109- body=$( wget --server-response --content-on-error -q -O - " $url " 2> $tmpFile || true)
109+ body=$( wget --server-response --content-on-error -q -O - " $url " 2> $tmpFile || true)
110110 httpStatusCode=$( cat $tmpFile | awk ' /^ HTTP/{print $2}' )
111111 fi
112112 if [ " $httpStatusCode " != 200 ]; then
@@ -203,7 +203,6 @@ testVersion() {
203203 echo " $ARDUINO_LINT_VERSION installed successfully in $LBINDIR "
204204}
205205
206-
207206# Execution
208207
209208# Stop execution on any error
0 commit comments