From e1fcb09ae775b8a3fc06d8f113176cedd02cabfa Mon Sep 17 00:00:00 2001 From: Marcus Date: Sun, 16 Jun 2024 19:40:41 +0200 Subject: [PATCH] cangrow.sh - add curl an wget to apt packages --- cangrow.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cangrow.sh b/cangrow.sh index 207dad0..412a6da 100755 --- a/cangrow.sh +++ b/cangrow.sh @@ -4,7 +4,7 @@ test -z $TTY && TTY="/dev/ttyUSB0" test -z $IP && IP="192.168.30.212" test -z $VER && VER="0.1-dev" -BUILD="$(git rev-parse --short HEAD)" +BUILD="$(git rev-parse --short HEAD)-$(date '+%Y%m%d%H%M%S')" ACLI="$HOME/.local/bin/arduino-cli" ACLI_CMD="$ACLI --config-file arduino-cli.yml" @@ -41,6 +41,10 @@ case $1 in echo "" echo ":: Press Enter to continue" read + echo "" + echo ":: Installing Arduino IDE packages with apt, please enter sudo password:" + sudo apt update + sudo apt install arduino python3 wget curl echo ":: Ensure directory ${ACLI_DIR} is present" test -d ${ACLI_DIR} || mkdir -p ${ACLI_DIR} echo ":: Please ensure ${ACLI_DIR} is in your \$PATH, I wont do it." @@ -49,10 +53,6 @@ case $1 in wget -O - "https://github.com/arduino/arduino-cli/releases/download/v1.0.0/arduino-cli_1.0.0_Linux_64bit.tar.gz" | tar -C ${ACLI_DIR} -zxvf - arduino-cli chmod +x ${ACLI} echo "" - echo ":: installing Arduino IDE packages with apt, please enter sudo password:" - sudo apt update - sudo apt install arduino python3 - echo "" echo ":: Installing ESP8266 core for Arduino" ${ACLI_CMD} core install esp8266:esp8266 echo ":: Installing Arduino libraries"