cd"${0%/*}"||(echo"Could not chdir to this script's dir!"&&exit)# Change the working directory to the script's directory, when running from other location.
justInstall=0
if[[$# -eq 1]];then
justInstall=$1
elif[[$# -gt 1]];then
echo -e "Wrong number of arguments given: ${#}\nPlease execute it like: script.sh <justInstall: 0 | 1>";exit1