added missing else statement to bash script