diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2011-02-07 08:56:15 -0800 |
---|---|---|
committer | Luis R. Rodriguez <lrodriguez@atheros.com> | 2011-02-07 08:57:05 -0800 |
commit | 92e443f253187a431b150e2fdfd54c09c4e91c5d (patch) | |
tree | 5a7c67ca7968a06ac20557b293165ee807d5cf19 /scripts | |
parent | d29d12243aa63d6d8057b727da2bc814f93db5cc (diff) |
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 <lrodriguez@atheros.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/admin-update.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh index f65ea854..6fe49ce0 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 |