speclint: only show the diff files
Since we moved the specfile into the tempdir so that it can be modified the final checks are showing all the specfiles even if they pass the spec cleaner process. Also don't reset the failed variable. Fix the argument check for multiple files Change-Id: I0a7c33f0ce4f31607bb518a2a899a522cdd7fd4c Signed-off-by: Saul Wold <sgw@linux.intel.com>
This commit is contained in:
parent
6cea1d1e4c
commit
92405a9ad7
@ -14,7 +14,7 @@ usage() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ -z $@ ]; then
|
||||
if [ ${#@} -eq 0 ]; then
|
||||
usage
|
||||
fi
|
||||
|
||||
@ -84,10 +84,9 @@ for spec in $@; do
|
||||
done
|
||||
|
||||
# check if some diffs are available
|
||||
failed=0
|
||||
for specdiff in $tmpdir/*; do
|
||||
for specdiff in $tmpdir/*.cleaner.diff; do
|
||||
if [ -s "$specdiff" ]; then
|
||||
echo "##### `basename ${specdiff}` ##### "
|
||||
echo "##### `basename ${specdiff} .cleaner.diff` ##### "
|
||||
cat $specdiff
|
||||
failed=1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user