title: Bash error - binary operator expected
body: <p>I am trying to install PGI Compilers 2016 and after running the <code>install</code> file
  I get an error:</p>
  
  <pre><code>binary operator expected
  </code></pre>
  
  <p>on the line:</p>
  
  <pre><code>if test -d $DIR/install_components ; then
  </code></pre>
  
  <p><a href="http://www.shellcheck.net/" rel="nofollow">ShellCheck.net</a> says "add double quote to prevent globbing and word splitting" whatever it means.</p>
  
  <p>But the whole installation suite is quite big, so am I supposed to add quotes in zillion places or is there some command I may use to go around it?</p>