cangrow.sh - add curl an wget to apt packages

This commit is contained in:
Marcus 2024-06-16 19:40:41 +02:00
parent 1b1c0ce391
commit e1fcb09ae7

View File

@ -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"