Update batch.sh

optiimized the script ;)