Hi,
I tried to run following code on Bash/Shell command step:
#!/bin/bash
arr=(a b c d e)
for (( i=0; i<${#arr[@]}; i++ ))
do
echo ${arr[$i]}
done
But it failed on mvel error.
Any idea how to handle such code that include "${" in bash script?
Currently QB will always try to interpretate contents inside ${...} as scripts. An improvement request is filed as:
For now, you may put this in a separate script, and then call that script from the command build step.