助けてくれてありがとう!!!
私は次のコードを持っています:
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
それは機能しませんが、それは良い出発点です。基本的に機能しないのはifループです。やり方がわからないので作りました。
私は次のことをしたいです:
$dest_includeフォルダーのコンテンツをループします。いずれかのフォルダー($ d)が配列内の要素のいずれかに一致する場合は、1つのことを実行し、それ以外の場合は別のことを実行します。
ありがとう!!!