Corrected shell script.