Getting unary operator error on Shell script Linux
<p>I get this error:</p>

<pre><code>getengine.sh: line 38: [: =: unary operator expected
getengine.sh: line 41: [: =: unary operator expected
</code></pre>

<p>Here is the script:</p>

<pre><code>if [ $1 = "m" ]; then #this is line 38
    initial=`curl -s http://some/2016/30-publish`
    label=`curl -s http://test/${initial}.l/artifacts/info.xml`
elif [ $1 = "s" ]; then # this is line 41
    initial=`curl -s http://some/2016/30-publish`
    label=`curl -s http://test/${initial}.l/artifacts/info.xml`
fi
</code></pre>

<p>I don't understand what is wrong? This works perfectly locally but when I run it in a linux environment server I get this error...any help would be appreciated</p>