Skip to content

Instantly share code, notes, and snippets.

@capsulecorplab
Last active January 2, 2021 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save capsulecorplab/dffa4e4add50b9381bfd0021a7e1aaa3 to your computer and use it in GitHub Desktop.
Save capsulecorplab/dffa4e4add50b9381bfd0021a7e1aaa3 to your computer and use it in GitHub Desktop.
bash script for installing arduino on 64bit Linux
#!/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