I have the following code:
PROJECT_TYPES="iPad iPhone"
ANT_TARGET_NAMES="ipadf ipaf"
INDEX=0
for PROJECT_TYPE in $PROJECT_TYPES; do
echo "${PROJECT_TYPE} => ${ANT_TARGET_NAMES[$INDEX]}"
let "INDEX++"
done
This displays the following lines:
iPad => ipadf ipaf
iPhone =>
How can I change the code so it displays:
iPad => ipadf
iPhone => ipaf
???
Thanks in advance
Mike
The correct way to do this is: