From: Hauke Mehrtens Date: Sun, 21 Feb 2010 14:27:50 +0000 (+0100) Subject: compat-wireless: Fix refresh script if no patches are available X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8b10f49c4373664a70da6137fe551caf137d42da;p=openwrt%2Fstaging%2Fblogic.git compat-wireless: Fix refresh script if no patches are available Signed-off-by: Hauke Mehrtens --- 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