Search Linux Wireless

[PATCH 08/13] compat-wireless: No need to search for patches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Don't search for patches with find. Just silent ls errors.

Signed-off-by: Ozan Çağlayan <ozancag@xxxxxxxxx>
---
 scripts/admin-update.sh | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh
index 05ec449..555b61b 100755
--- a/scripts/admin-update.sh
+++ b/scripts/admin-update.sh
@@ -613,11 +613,7 @@ for dir in $EXTRA_PATCHES; do
 		patchRefresh $dir
 	fi
 
-	FOUND=$(find $dir/ -maxdepth 1 -name \*.patch | wc -l)
-	if [ $FOUND -eq 0 ]; then
-		continue
-	fi
-	for i in $(ls -v $dir/*.patch); do
+	for i in $(ls -v $dir/*.patch &> /dev/null); do
 		echo -e "${GREEN}Applying backport patch${NORMAL}: ${BLUE}$i${NORMAL}"
 		patch -p1 -N -t < $i
 		RET=$?
-- 
1.7.11.2

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux