Closed jelockwood closed 1 year ago
I tested and wasn't able to reproduce on macOS Monterey 12.6, but I was able to reproduce this on macOS Big Sur 11.7. This change looks like a sensible fix to the problem, so I've added it: https://github.com/rtrouton/rtrouton_scripts/commit/bab5660deb14489afd8d50ff32ce10b28c9b78da
The script says -
However when I checked the result it actually returned the following which as you can see does not list the newest version as the last line.
This can be easily solved by adding
| sort
to the end of the relevant lines as followsThis sorts the results and therefore ensures the highest i.e. newest version is indeed the last line returned.