Arduino IDE Linux command line installer

Hi, I’m currently working on a utility for those who wants to manage their project with the console only, using arduino builder, and one part of my script installs the arduino IDE, so I decided to share it with you my fellow builders.

V0.1
Install Arduino IDE - Pastebin.com NOT WORKIN…

V0.2
Changelog : Fixed -c platform version where

v1 Out of beta.
Changelog : Moved all inside main :X now all works. Tweaked the download and extraction

Click and go version

As you can imagine it requires wget to download the ide.

UPDATE 6-April-2017
Sorry for the delay, the v1 works as intended, u can use it as you like.

Usage:

START################################################################################
#                     Program writed for 85 characters lenght                       #
#####################################################################################
#   Usage: $0 [-v platform version] [-d directory] [-c platform version directory]  #
#                                                                                   #
#   -v : If you know what version you want to install EX i.sh -v arm 1.8.2          #
#   -d : If you know where to install EX i.sh -d .                                  #
#   -c : If you know version and where EX i.sh -c arm 1.8.2 .                       #
#                                                                                   #
#   If no parameter is chosen, the program will ask for them.                       #
#                                   (V)(;,,;)(V)                                    #
##################################################################################END

Any time I have needed to download the IDE for my Linux laptops I have just downloaded it and extracted the ZIP file to somewhere convenient.

...R

Robin2:
Any time I have needed to download the IDE for my Linux laptops I have just downloaded it and extracted the ZIP file to somewhere convenient.

...R

I know it's the easy way to do it, but not the fun one. I'm working on a bigger project and this is just a copy+paste + edit + automated way to do it.

As I had specified on the title it's for command line only. Where u have to do.

mkdir $directory/Arduino
cd $directory/Arduino
wget https://downloads.arduino.cc/arduino-${download}.tar.xz
tar xvJf arduino-${download}.tar.xz
cd arduino*/
./install.sh
rm ../arduino-${download}.tar.xz

With this I'm simplifing my installation to arduino_installer.sh -c arm 1.8.2 . this will install arduino where the installer is (.)

Sorry for the bad impresions with the first version, I couldn't test it and ended up being a mess, and not working, version 0.2 woks but menu still not workin, I will do it by thursday, and the first version of the ACLH software I'm working on.

Sourgin:
I know it's the easy way to do it, but not the fun one.

I much prefer easy.

...R