Skip to content
Browse files

geninit: dont error on EEXIST for adding explicit modules

  • Loading branch information...
1 parent c75b2b1 commit 00c0296f3fe798f74fa65bd4e1f5c2ad8840fbe2 @falconindy committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 geninit
View
3 geninit
@@ -248,7 +248,8 @@ __build_image() { # {{{
# add extra modules from config
for mod in ${modules[@]}; do
- add_module "$mod" || (( ++errors ))
+ add_module "$mod"
+ [[ $? = @(0|$EEXIST) ]] || (( ++errors ))
done
# add extra files from config

0 comments on commit 00c0296

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