coolstar / Odyssey-bootstrap

Chimera bootstrap
107 stars 40 forks source link

Fix script failing if iOS version contains more than one dot #22

Closed raspberryenvoie closed 3 years ago

raspberryenvoie commented 3 years ago

The script fails if the variable VER (so the iOS version) is equal to any number with two dots (e.g. 14.4.2) and it outputs ${VER} not compatible.. Unlike zsh, bash doesn't remove everything after the dot in VER on lines 48, 50 and 52. It only removes the number after the first dot and doesn't remove the number after the second dot.

This PR fixes this by changing ${VER%.*} to ${VER%%.*}. Now bash correctly removes everything after the first dot in VER.