From b2cc9def801529461451fbbfdaefe0011cc8e942 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 28 Jul 2014 16:24:58 -0300 Subject: [PATCH] plugins-script: test if there is a features folder before trying to cd it --- script/noosfero-plugins | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/noosfero-plugins b/script/noosfero-plugins index f1662b8..d81a48d 100755 --- a/script/noosfero-plugins +++ b/script/noosfero-plugins @@ -104,8 +104,10 @@ _enable(){ plugins_features_dir="$NOOSFERO_DIR/features/plugins" cd $plugins_public_dir test -d "$source/public" && ln -s "$source/public" "$plugin" - cd $plugins_features_dir - test -d "$NOOSFERO_DIR/features" && test -d "$source/features" && ln -s "$source/features" "$plugin" + if [ -d "$NOOSFERO_DIR/features" ]; then + cd $plugins_features_dir + test -d "$source/features" && ln -s "$source/features" "$plugin" + fi _say "$plugin enabled" run "$source/after_enable.rb" needs_migrate=true -- libgit2 0.21.2