I ran this on a switch running 7.0(3)I2(2a) assuming it would upgrade to 7.0(3)I4(7) and the check for bios upgrade didn't flag that the bios was newer so it resulted in the loader prompt
Is there any place in the current script that it gets the bios version in the to-install .bin? If so it'd be easy enough to fix, otherwise I'll have to figure out how to get the bios version string from the new image