From e6614294c2e0fd7669c8a0eaad76480a7823e85c Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 15 Oct 2006 16:50:12 +0200 Subject: [PATCH] Add checking of result of ls --- ccollect.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ccollect.sh b/ccollect.sh index 22a46bd..403bf79 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -155,6 +155,11 @@ if [ "$ALL" = 1 ]; then cwd=$(pwd -P) cd "$CSOURCES"; ls > "$TMP" + + if [ "$?" -ne 0 ]; then + echo "Listing of sources failed. Aborting." + exit 1 + fi while read tmp; do eval source_${no_sources}=\"$tmp\"