Thank you very much for helping!!!
I have the following code:
base[0]='coordfinder'
base[1]='editor_and_options'
base[2]='global'
base[3]='gyro'
base[4]='movecamera'
base[5]='orientation'
base[6]='sa'
for d in $dest_include/*; do
if [ $d == "${base[@]}" ]; then
echo $plugin='y' >> vt_conf.sh
else
plugin=$(basename $d)
echo $plugin'?'
read $plugin
echo $plugin=${!plugin} >> vt_conf.sh
fi
done
It doesn’t work, but it’s a good starting point.
Basically the thing that doesn’t work is the if loop. I just made it up because I don’t know how to do it.
I’d like to do the following:
Loop through the content of $dest_include folder.
If any of the forlders ($d) matches any of the elements in the array do one thing, else do something else.
Thanks!!!
Iterate through an inner loop, setting a flag if you find a match.