Changed to a more proper shell script format