Skip to content
Browse files

throw errors on user-specfied file/module not found

  • Loading branch information...
1 parent afb7ec8 commit 69e7d7e31e19d67ae6e5f69127b0b158a5df0375 @falconindy committed Apr 29, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 geninit
View
7 geninit
@@ -179,12 +179,12 @@ __build_image() { # {{{
# add extra modules from config
for mod in ${modules[@]}; do
- add_module "$mod"
+ add_module "$mod" || err "Module not found: $mod"
done
# add extra files from config
for file in "${files[@]}"; do
- add_file "$file"
+ add_file "$file" || err "File not found: $file"
done
# only create depmod files if there's modules added
@@ -195,8 +195,7 @@ __build_image() { # {{{
rm "$buildroot$moduledir"/modules.!(dep|alias|symbols)
fi
- # create delicious config
- {
+ { # create delicious config
printf '%s %d' '%MODULES%' "${#modules[*]}"
printf ' %s' "${modules[@]}"
printf '\n'

0 comments on commit 69e7d7e

Please sign in to comment.
Something went wrong with that request. Please try again.