compat-wireless: fix stable patch pull count
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Sat, 11 Dec 2010 01:10:40 +0000 (17:10 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Sat, 11 Dec 2010 01:14:10 +0000 (17:14 -0800)
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>
scripts/admin-update.sh

index 4bda0ef09e2403f2aa6f370d97eac3c810f0e0b0..6fd1bc0cee9a0a71b2d49c6abd00ed25b02fbaa9 100755 (executable)
@@ -511,7 +511,7 @@ for dir in $EXTRA_PATCHES; do
                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