From 503dc836e732e64a50a88293711bdf708aebf43e Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Fri, 10 Dec 2010 17:10:40 -0800 Subject: [PATCH] compat-wireless: fix stable patch pull count 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 --- scripts/admin-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh index 4bda0ef09e24..6fd1bc0cee9a 100755 --- a/scripts/admin-update.sh +++ b/scripts/admin-update.sh @@ -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 -- 2.30.2