From: Luis R. Rodriguez Date: Mon, 7 Feb 2011 16:56:15 +0000 (-0800) Subject: compat-wireless: skip directory if patches directory is empty X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=92e443f253187a431b150e2fdfd54c09c4e91c5d;p=openwrt%2Fstaging%2Fblogic.git compat-wireless: skip directory if patches directory is empty Instead of getting a nag, just skip the directory if its empty. Signed-off-by: Luis R. Rodriguez --- diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh index f65ea854d67b..6fe49ce0682e 100755 --- a/scripts/admin-update.sh +++ b/scripts/admin-update.sh @@ -531,6 +531,10 @@ for dir in $EXTRA_PATCHES; do done for dir in $EXTRA_PATCHES; do + if [[ ! -d $dir ]]; then + echo -e "${RED}Patches: $dir empty, skipping...${NORMAL}\n" + continue + fi if [[ $LAST_ELEM = $dir && "$REFRESH" = y ]]; then patchRefresh $dir fi