Updated bash script.