From 6e9d57c188cdba613d2a35a717f30e8e7a3da4d5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 25 Mar 2015 19:58:50 +0000 Subject: [PATCH] Inverted logic --- src/freedombone | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone b/src/freedombone index 80d22a82..f969697c 100755 --- a/src/freedombone +++ b/src/freedombone @@ -8384,13 +8384,13 @@ function install_mediagoblin { sed -i "s/email_sender_address.*/email_sender_address = \"$MY_EMAIL_ADDRESS\"/g" $MEDIAGOBLIN_PATH/mediagoblin_local.ini # add extra media types - if grep -q "media_types.stl" $MEDIAGOBLIN_PATH/mediagoblin_local.ini; then + if ! grep -q "media_types.stl" $MEDIAGOBLIN_PATH/mediagoblin_local.ini; then echo '[[mediagoblin.media_types.stl]]' >> $MEDIAGOBLIN_PATH/mediagoblin_local.ini fi - if grep -q "media_types.audio" $MEDIAGOBLIN_PATH/mediagoblin_local.ini; then + if ! grep -q "media_types.audio" $MEDIAGOBLIN_PATH/mediagoblin_local.ini; then echo '[[mediagoblin.media_types.audio]]' >> $MEDIAGOBLIN_PATH/mediagoblin_local.ini fi - if grep -q "media_types.video" $MEDIAGOBLIN_PATH/mediagoblin_local.ini; then + if ! grep -q "media_types.video" $MEDIAGOBLIN_PATH/mediagoblin_local.ini; then echo '[[mediagoblin.media_types.video]]' >> $MEDIAGOBLIN_PATH/mediagoblin_local.ini fi