use find instead of ls
make sure that on error we exit with value 1