Commit 837c5a680c54063b7113d078b1b5384f012c4c68
1 parent
a0ed6801
Exists in
master
and in
29 other branches
noosfero-plugins: fix dependency checking with bundler
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
script/noosfero-plugins
... | ... | @@ -98,9 +98,12 @@ _enable(){ |
98 | 98 | dependencies_ok=true |
99 | 99 | dependencies_file="$source/dependencies.rb" |
100 | 100 | if [ -e $source/Gemfile ]; then |
101 | - if ! (cd $source && bundle --local); then | |
101 | + gemfile=$(mktemp --tmpdir=.) | |
102 | + cat Gemfile $source/Gemfile > $gemfile | |
103 | + if ! RUBYOPT='' BUNDLE_GEMFILE="$gemfile" bundle --local --quiet; then | |
102 | 104 | dependencies_ok=false |
103 | 105 | fi |
106 | + rm -f $gemfile $gemfile.lock | |
104 | 107 | fi |
105 | 108 | if ! run $dependencies_file; then |
106 | 109 | dependencies_ok=false | ... | ... |