Last active
January 2, 2021 13:28
-
-
Save capsulecorplab/dffa4e4add50b9381bfd0021a7e1aaa3 to your computer and use it in GitHub Desktop.
bash script for installing arduino on 64bit Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# artifacts | |
arduinosource=arduino-1.8.13 | |
# arduino | |
if ! command -v arduino &>/dev/null; then | |
if [ ! -r ~/$arduinosource ]; then | |
curl -L "https://downloads.arduino.cc/arduino-1.8.13-linux64.tar.xz" -o ~/$arduinosource.tar.xz | |
tar -xvf ~/$arduinosource.tar.xz -C ~/ | |
rm -rf ~/$arduinosource.tar.xz | |
fi | |
cd ~/$arduinosource | |
sudo ./install.sh | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment