You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
642 B
Bash
20 lines
642 B
Bash
#!/bin/bash
|
|
|
|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
|
|
|
function error {
|
|
echo -e "\\e[91m$1\\e[39m"
|
|
exit 1
|
|
}
|
|
|
|
cd ~/.local/share
|
|
rm -f arduino-1.8.13-linuxaarch64.tar.xz
|
|
wget https://downloads.arduino.cc/arduino-1.8.13-linuxaarch64.tar.xz || error "failed to download!"
|
|
|
|
tar -xf arduino-1.8.13-linuxaarch64.tar.xz || error "failed to extract with tar!"
|
|
arduino-1.8.13/install.sh || error "failed to run install as $USER user!"
|
|
sudo arduino-1.8.13/install.sh || error "failed run install as root user!"
|
|
|
|
rm -f $HOME/Desktop/arduino-arduinoide.desktop arduino-1.8.13-linuxaarch64.tar.xz
|
|
exit 0
|