--- a/mipav
+++ b/mipav
@@ -78,7 +78,7 @@ while [ $# -gt 0 ]; do
 done
 
 
-if [ "$MIPAV_LOG" == '-' ]; then
+if [ "$MIPAV_LOG" = '-' ]; then
    echo ""
    echo " MIPAV_BASE    = $MIPAV_BASE"
    echo " MIPAV_JAR     = $MIPAV_JAR"
@@ -95,7 +95,7 @@ fi
 cd $MIPAV_BASE
 
 
-if [ "$HEADLESS" == 1 ]; then
+if [ "$HEADLESS" = 1 ]; then
         DISPLAY=:0
         export DISPLAY
         xhost +
@@ -112,7 +112,7 @@ test "$MIPAV_LOG" != '-' && exec >$MIPAV
 RETVAL=$?
 
 
-if [ "$HEADLESS" == 1 ]; then
+if [ "$HEADLESS" = 1 ]; then
         xhost -
 fi
 
