Fixed the bash script