Bläddra i källkod

Inverted logic

Bob Mottram 10 år sedan
förälder
incheckning
6e9d57c188
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3
    3
      src/freedombone

+ 3
- 3
src/freedombone Visa fil

8384
   sed -i "s/email_sender_address.*/email_sender_address = \"$MY_EMAIL_ADDRESS\"/g" $MEDIAGOBLIN_PATH/mediagoblin_local.ini
8384
   sed -i "s/email_sender_address.*/email_sender_address = \"$MY_EMAIL_ADDRESS\"/g" $MEDIAGOBLIN_PATH/mediagoblin_local.ini
8385
 
8385
 
8386
   # add extra media types
8386
   # add extra media types
8387
-  if grep -q "media_types.stl" $MEDIAGOBLIN_PATH/mediagoblin_local.ini; then
8387
+  if ! grep -q "media_types.stl" $MEDIAGOBLIN_PATH/mediagoblin_local.ini; then
8388
       echo '[[mediagoblin.media_types.stl]]' >> $MEDIAGOBLIN_PATH/mediagoblin_local.ini
8388
       echo '[[mediagoblin.media_types.stl]]' >> $MEDIAGOBLIN_PATH/mediagoblin_local.ini
8389
   fi
8389
   fi
8390
-  if grep -q "media_types.audio" $MEDIAGOBLIN_PATH/mediagoblin_local.ini; then
8390
+  if ! grep -q "media_types.audio" $MEDIAGOBLIN_PATH/mediagoblin_local.ini; then
8391
       echo '[[mediagoblin.media_types.audio]]' >> $MEDIAGOBLIN_PATH/mediagoblin_local.ini
8391
       echo '[[mediagoblin.media_types.audio]]' >> $MEDIAGOBLIN_PATH/mediagoblin_local.ini
8392
   fi
8392
   fi
8393
-  if grep -q "media_types.video" $MEDIAGOBLIN_PATH/mediagoblin_local.ini; then
8393
+  if ! grep -q "media_types.video" $MEDIAGOBLIN_PATH/mediagoblin_local.ini; then
8394
       echo '[[mediagoblin.media_types.video]]' >> $MEDIAGOBLIN_PATH/mediagoblin_local.ini
8394
       echo '[[mediagoblin.media_types.video]]' >> $MEDIAGOBLIN_PATH/mediagoblin_local.ini
8395
   fi
8395
   fi
8396
 
8396