Now the path is absolute, therefore the install.sh script could be launched by any path, eg. the following will work as well:
/bin/bash/ /home/myuser/PirateBoxScripts_Webserver-master/piratebox/install.sh
Also line 36 and line 47 where pointing to incompatible launching path (the first was in PirateBoxScripts_Webserver-master/piratebox, the second just in PirateBoxScripts_Webserver-master/).
Now the file path of the install.sh script is absolute, therefore it will be possible to launch the script also from other path like:
/bin/bash /home/myuser/PirateBoxScripts_Webserver-master/piratebox/install.sh
This also corrects a wrong path on line 47 that was causing the install script to fail.
typo error: the default parameter of line 31 (src_file) should be a string, not a variable!
Dash compatibility issue (many system use dash as default shell)
typo error: the comparison of string in bash require only on "="
typo in bash test
typo in bash test
Merge pull request #92 from Sjd-Risca/installscript

Install script corrections