Corrected test.sh to work in cron env