Add checking of result of ls
This commit is contained in:
parent
1e1000f193
commit
e6614294c2
1 changed files with 5 additions and 0 deletions
|
@ -156,6 +156,11 @@ if [ "$ALL" = 1 ]; then
|
||||||
cd "$CSOURCES";
|
cd "$CSOURCES";
|
||||||
ls > "$TMP"
|
ls > "$TMP"
|
||||||
|
|
||||||
|
if [ "$?" -ne 0 ]; then
|
||||||
|
echo "Listing of sources failed. Aborting."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
while read tmp; do
|
while read tmp; do
|
||||||
eval source_${no_sources}=\"$tmp\"
|
eval source_${no_sources}=\"$tmp\"
|
||||||
no_sources=$(($no_sources+1))
|
no_sources=$(($no_sources+1))
|
||||||
|
|
Loading…
Reference in a new issue