Commit fc3edb13d2d6c46fb0bc790f3a2b893bd122d9cf
Exists in
master
and in
29 other branches
Merge branch 'master' into rails3
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
script/noosfero-plugins
... | ... | @@ -104,8 +104,10 @@ _enable(){ |
104 | 104 | plugins_features_dir="$NOOSFERO_DIR/features/plugins" |
105 | 105 | cd $plugins_public_dir |
106 | 106 | test -d "$source/public" && ln -s "$source/public" "$plugin" |
107 | - cd $plugins_features_dir | |
108 | - test -d "$NOOSFERO_DIR/features" && test -d "$source/features" && ln -s "$source/features" "$plugin" | |
107 | + if [ -d "$NOOSFERO_DIR/features" ]; then | |
108 | + cd $plugins_features_dir | |
109 | + test -d "$source/features" && ln -s "$source/features" "$plugin" | |
110 | + fi | |
109 | 111 | _say "$plugin enabled" |
110 | 112 | run "$source/after_enable.rb" |
111 | 113 | needs_migrate=true | ... | ... |