@@ -39,12 +39,12 @@ SIMPLATFORMS_REGEX="m/(.*)\t(.*)\t(.*)\t(.*)/g"
3939
4040# Find simulator ID.
4141if [[ -n $OSVERSION_REGEX ]]; then
42- echo " Finding OS version using regex: ${OSVERSION_REGEX} . "
42+ echo " Finding OS version using regex: ${OSVERSION_REGEX} "
4343 MATCHES=$( echo " ${SIMPLATFORMS} " | perl -nle ' if (' $SIMPLATFORMS_REGEX ' ) { ($name, $plat, $os, $id) = ($1, $2, $3, $4); if ($os =~ /' $OSVERSION_REGEX ' /) { print "${name}\t${plat}\t${os}\t${id}"; } }' )
4444 MATCHESDESC=$( echo " ${MATCHES} " | perl -nle ' if (' $SIMPLATFORMS_REGEX ' ) { ($name, $plat, $os, $id) = ($1, $2, $3, $4); print "${name} (${plat} - ${os}) - ${id}"; }' )
4545 TOPLINEMATCH=$( echo " ${MATCHES} " | head -n 1)
46- DESTID=$( echo " ${TOPLINEMATCH} " | perl -le ' if (' $SIMPLATFORMS_REGEX ' ) { ($name, $plat, $os, $id) = ($1, $2, $3, $4); if ($os =~ /' $OSVERSION_REGEX ' /) { print "${id}"; } }' )
47- DESTDESC=$( echo " ${TOPLINEMATCH} " | perl -le ' if (' $SIMPLATFORMS_REGEX ' ) { ($name, $plat, $os, $id) = ($1, $2, $3, $4); if ($os =~ /' $OSVERSION_REGEX ' /) { print "${name} (${plat} - ${os}) - ${id}"; } }' | head -n 1)
46+ DESTID=$( echo " ${TOPLINEMATCH} " | perl -nle ' if (' $SIMPLATFORMS_REGEX ' ) { ($name, $plat, $os, $id) = ($1, $2, $3, $4); if ($os =~ /' $OSVERSION_REGEX ' /) { print "${id}"; } }' )
47+ DESTDESC=$( echo " ${TOPLINEMATCH} " | perl -nle ' if (' $SIMPLATFORMS_REGEX ' ) { ($name, $plat, $os, $id) = ($1, $2, $3, $4); if ($os =~ /' $OSVERSION_REGEX ' /) { print "${name} (${plat} - ${os}) - ${id}"; } }' | head -n 1)
4848else
4949 echo " Finding latest OS version for target."
5050 MATCHESDESC=$( echo " ${SIMPLATFORMS} " | perl -nle ' if (' $SIMPLATFORMS_REGEX ' ) { ($name, $plat, $os, $id) = ($1, $2, $3, $4); print "${name} (${plat} - ${os}) - ${id}"; }' )
0 commit comments