compat-wireless: Fix refresh script if no patches are available
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 21 Feb 2010 14:27:50 +0000 (15:27 +0100)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 22 Feb 2010 18:18:35 +0000 (10:18 -0800)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
scripts/admin-update.sh

index e7f9a1c600a1d1a5fe2f57c38c022569e4569bf7..c75af30cd69d2065d6f26c705ffe440f61fa8ed6 100755 (executable)
@@ -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