I have written a small script that add particular IP addresses taken from a config file and then puts it in a list :
WAS_IP=$(grep "<was_ip>" $CONFIG| cut -d '>' -f 2 | cut -d '<' -f 1 | xargs) NODES=() NODES+=("$WAS_IP")
3.2.25this works fine but on
3.0 where I have my production environment this gives an error :
./config.sh: line 3154: syntax error near unexpected token `"$WAS_IP"' ./config.sh: line 3154: ` NODES+=("$WAS_IP")'
How can I avoid this issue ?