title: Bash wildcard not working for substring match
body: <p>Not sure why this isnt working:</p>
  
  <pre><code>declare -a brands=(
  "sassandbide"
  "cocoandlola"
  )
  
  var="sassandbide.com"
  
  for assigned in "${!brands[@]}"
  do
      chosen_brand=${brands[$assigned]}
      echo "$chosen_brand"
      echo "$var"
      if [[ "$chosen_brand" = *$var* ]];
          then
              echo "working"
          else
              echo "not working"
      fi
  
  done
  </code></pre>
  
  <p>Output:
  sassandbide</p>
  
  <p>sassandbide.com</p>
  
  <p>not working</p>
  
  <p>cocoandlola</p>
  
  <p>sassandbide.com</p>
  
  <p>not working</p>
  
  <p>Any help would be appreciated.
  Cheers</p>