Add -e to detect errors

Adding also -x to see what's going on.