If we had a backport of a stable patch but no new pending stable
patches that do not require a backport we would get an error telling
us that no patch file in pending-stable patch was found, this was
because our find went down the pending-stable/ directory recursively,
we need to stop it at each directory.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
patchRefresh $dir
fi
- FOUND=$(find $dir/ -name \*.patch | wc -l)
+ FOUND=$(find $dir/ -maxdepth 1 -name \*.patch | wc -l)
if [ $FOUND -eq 0 ]; then
continue
fi