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