0099a196c5
sort -V is a GNU extension not available on macOS/BSD sort. Replaced with sed 's/^v//' | sort -t. -k1,1n -k2,2n -k3,3n which strips the 'v' prefix, sorts numerically by major.minor.patch, then re-prepends 'v' for the final path. Works on both GNU and BSD sort.