Corrected shell script