Add checking of result of ls
This commit is contained in:
parent
1e1000f193
commit
e6614294c2
1 changed files with 5 additions and 0 deletions
|
@ -155,6 +155,11 @@ if [ "$ALL" = 1 ]; then
|
||||||
cwd=$(pwd -P)
|
cwd=$(pwd -P)
|
||||||
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\"
|
||||||
|
|
Loading…
Reference in a new issue