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

View file

@ -156,6 +156,11 @@ if [ "$ALL" = 1 ]; then
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\"
no_sources=$(($no_sources+1))