diff --git a/cangrow.sh b/cangrow.sh index b7df3ab..dc12ef9 100755 --- a/cangrow.sh +++ b/cangrow.sh @@ -6,6 +6,7 @@ test -z $IP && IP="192.168.4.20" test -z $VER && VER="0.2-dev" test -z $BOARD && BOARD="esp8266:esp8266:d1_mini_clone" #test -z $BOARD && BOARD="esp32:esp32:d1_mini32" + BUILD="$(git rev-parse --short HEAD)-$(echo $BOARD | cut -d : -f1)-$(date '+%Y%m%d%H%M%S')" ACLI="$HOME/.local/bin/arduino-cli" @@ -100,7 +101,7 @@ case $1 in echo ":: Building firmware $VER $BUILD, target dir: $(pwd)/build/" version_header test -d build || mkdir build - ${ACLI_CMD} --no-color compile -v -b ${BOARD} "Arduino/CanGrow/CanGrow.ino" --output-dir build/ || exit 1 + ${ACLI_CMD} --no-color compile -b ${BOARD} "Arduino/CanGrow/CanGrow.ino" --output-dir build/ || exit 1 cp build/CanGrow.ino.bin build/CanGrow_v${VER}_${BUILD}.bin ;; u|upload)