From 8b10f49c4373664a70da6137fe551caf137d42da Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 21 Feb 2010 15:27:50 +0100 Subject: [PATCH] compat-wireless: Fix refresh script if no patches are available Signed-off-by: Hauke Mehrtens --- scripts/admin-update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh index e7f9a1c600a1..c75af30cd69d 100755 --- a/scripts/admin-update.sh +++ b/scripts/admin-update.sh @@ -247,6 +247,10 @@ patchRefresh() { mv -u $1/* patches.orig/ for i in patches.orig/*.patch; do + if [ ! -f "$i" ]; then + echo -e "${RED}No patches found in $1${NORMAL}" + break; + fi echo -e "${GREEN}Refresh backport patch${NORMAL}: ${BLUE}$i${NORMAL}" quilt import $i quilt push -f -- 2.30.2