Arduino/CanGrow/cangrow.sh aktualisiert

This commit is contained in:
DeltaLima 2024-10-24 21:46:19 +02:00
parent 0d0efbb2c1
commit 8e5268df22

View file

@ -12,7 +12,7 @@ BUILD="$(git rev-parse --short HEAD)-$(echo $BOARD | cut -d : -f1)-$(date '+%Y%m
ACLI="$HOME/.local/bin/arduino-cli" ACLI="$HOME/.local/bin/arduino-cli"
ACLI_CMD="$ACLI --config-file arduino-cli.yml" ACLI_CMD="$ACLI --config-file arduino-cli.yml"
test -z $BUILDDIR && BUILDDIR="build" test -z $BUILDDIR && BUILDDIR="build"
ACLI_CMD="${ACLI_CMD} --output-dir ${BUILDDIR}"
function help() { function help() {
echo "$0 [setup|build|upload|webupload|monitor]" echo "$0 [setup|build|upload|webupload|monitor]"
@ -92,6 +92,7 @@ case $1 in
;; ;;
b|build) b|build)
check_acli check_acli
ACLI_CMD="${ACLI_CMD} --output-dir ${BUILDDIR}"
echo ":: Building firmware $VER $BUILD, target dir: ${BUILDDIR}/" echo ":: Building firmware $VER $BUILD, target dir: ${BUILDDIR}/"
test -d ${BUILDDIR} || mkdir ${BUILDDIR} test -d ${BUILDDIR} || mkdir ${BUILDDIR}