Permalink
Browse files

error on module not found in API

  • Loading branch information...
1 parent 03e7e52 commit 72866c60587e62012b983b38bca2a25ce70e9634 @falconindy committed May 26, 2011
Showing with 5 additions and 2 deletions.
  1. +1 −1 geninit
  2. +4 −1 geninit.api
View
@@ -247,7 +247,7 @@ __build_image() { # {{{
# add extra modules from config
for mod in ${modules[@]}; do
- add_module "$mod" || { (( ++errors)); error "Module not found: $mod"; }
+ add_module "$mod" || (( ++errors ))
done
# add extra files from config
View
@@ -86,7 +86,10 @@ add_module() { # {{{
-name "$module.ko*" -print0)
fi
- [[ -z "$modpath" ]] && return 1
+ if [[ -z "$modpath" ]]; then
+ error "Module not found: $module"
+ return 1
+ fi
__add_file "${modpath#$basedir}" "$modpath" 644 || return 1

0 comments on commit 72866c6

Please sign in to comment.