Add checking of result of ls

This commit is contained in:
Nico Schottelius 2006-10-15 16:50:12 +02:00
parent 1e1000f193
commit e6614294c2
1 changed files with 5 additions and 0 deletions

View File

@ -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\"