title: How can I compare a string to multiple correct values in Bash?
body: <p>I have the following piece of Bash script:</p>
  <pre><code>function get_cms {
      echo &quot;input cms name&quot;
      read cms
      cms=${cms,,}
      if [ &quot;$cms&quot; != &quot;wordpress&quot; &amp;&amp; &quot;$cms&quot; != &quot;meganto&quot; &amp;&amp; &quot;$cms&quot; != &quot;typo3&quot; ]; then
          get_cms
      fi
  }
  </code></pre>
  <p>But no matter what I input (correct and incorrect values), it never calls the function again, because I only want to allow 1 of those 3 inputs.</p>
  <p>I have tried it with <code>||</code>, with <code>[ var != value ] or [ var != value1 ] or [ var != value1 ]</code>, but nothing works.</p>
  <p>Can someone point me in the right direction?</p>