• Ismo Puustinen's avatar
    hack/lib/golang.sh: use double quotes. · 173f8e2e
    Ismo Puustinen authored
    It's admittedly extremely unlikely that the host platform name would
    contain special characters, but still use double quotes to pattern
    matching.
    
    Consider this script:
    
      #!/bin/bash
    
      bar="foobar"
      foo="foo*"
    
      [[ $bar == $foo ]] && echo "first true"
      [[ "$bar" == "$foo" ]] && echo "second true"
    
    We get the output:
    
      first true
    
    The plan is to move from first case to the second case to prevent
    pattern match where there shouldn't be any.
    173f8e2e
golang.sh 22.6 KB