Updated the bash script