title: change array value while looping in bash
body: <p>The code</p>
  
  <pre><code>SourceFolder[0]=""
  SourceFolder[1]="inbound2"
  SourceFolder[2]="inbound3"
  
  for i in "${!SourceFolder[@]}"
  do    
      if [ -z "${SourceFolder[$i]}"]; then
          ${SourceFolder[$i]} = "TEST"
      fi
  done
  </code></pre>
  
  <p><code>${SourceFolder[$i]} = "TEST"</code> - doesn't work</p>
  
  <p>it says</p>
  
  <blockquote>
    <p>=: command not found</p>
  </blockquote>
  
  <p>How to change value in current loop index in an array?</p>