Skip to content

Commit

Permalink
fixed a bug in the ota script for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
MoJo2600 committed Sep 8, 2019
1 parent 775598d commit 50824b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/otaupdate.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#!/bin/bash
#---------------------------------------------------------------------
# Script for updating HomieNode firmware via OTA
#
Expand All @@ -7,7 +7,7 @@
#
# ./otaupdate.sh 192.168.178.10 soil01
#---------------------------------------------------------------------

set -e

#------------------------------------------------------------------------------
# main line starts here
Expand Down Expand Up @@ -50,7 +50,7 @@ binfile="${bin_path}/firmware.bin"

echo -e "binfile: ${binfile}"

if [[ "$machine" -eq "Mac" ]]; then
if [ "$machine" == "Mac" ]; then
md5sum=`md5 -q $binfile | awk '{ print $1 }'`
base64enc=`base64 $binfile`
else
Expand Down

0 comments on commit 50824b3

Please sign in to comment.