This update brings support for getting the appropriate package if you have a Raspberry Pi 2 with it's quad core ARM Cortex-A7 CPU and also it's about HTTP Status code 200.
ARM Architecture
BitTorrent Inc. is providing an armhf
build and I integrated a check on what Raspberry Pi you are running the script on to get you the appropriate build.
Raspberry Pi: Gets the arm
build
Raspberry Pi 2: Gets the armhf
build
Non-Default User
If you are not using the default user pi
but any other kind of username and want to install BitTorrent Sync as that user, the script will now detect that you are logged in as another user than pi
and then ask you first before installing.
This will get rid of the hassle to modify the btsync.sh
first before you run it.
So now it should be even more streamlined and comfortable.
HTTP Status Codes
Prior downloading the binary using the default link or a link you provided, as well as the configuration files from this GitHub page, the script will check if the file is actually online and accessible.
Basically it will check for HTTP status codes and if it is anything other than 200 the script will just quit, letting you know that the link is not working.
There are some things at the horizon for this project that might or might not result in a complete rewrite and probably deletion of 80% of it's code because of a thing.
Also I did some minor tweaks, cleaned up the code and did some cosmetic changes here and there.
Hope you like it.
If you find any bugs: please open an issue and I will get to it as soon as possible.