Skip to content

Commit

Permalink
the comment said there should be a subshell. add the subshell
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed Apr 28, 2011
1 parent 9fd7d2b commit 2f70640
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions geninit
Expand Up @@ -225,15 +225,16 @@ for builder in "${builders[@]}"; do
continue
fi

# subshell to prevent namespace pollution
. "$builderdir/$builder"
if ! type -t build >/dev/null; then
err "no build function found in builder '$builder'"
continue
fi

info "Building: [$builder]"
build
( # subshell to prevent namespace pollution
. "$builderdir/$builder"
if ! type -t build >/dev/null; then
err "no build function found in builder '$builder'"
continue
fi

info "Building: [$builder]"
build
)
done

# add extra modules from config
Expand Down

0 comments on commit 2f70640

Please sign in to comment.