Converting sh to bash