Closed timmoorhouse closed 8 years ago
If you change the sort
-command here
https://github.com/rasa/vmware-tools-patches/blob/d81a816a36211aeb68dd73bcf367ef6096fa7a4b/untar.sh#L10 to
tool="$(find -type f -name 'VMwareTools-*.tar.gz' | sort -nr -t - -k 2 | head -n 1)"
it's working for you?
That works for me (unpacks 10.0.5 with the update instead of 9.9.4 as with the current version with all of the tarballs present).
When untar.sh isn't given a specific version to untar, it's trying to use the latest one present by default. To do this, it's using "sort -nr" on the file names and then using the first result. Unfortunately, this doesn't do a numeric sort if non-numeric characters appear first. For example:
With all of these versions present, untar.sh would pick 9.9.4. If, however, you tell it where the specific numeric field is, things work:
Adding the "-t - -k 2" options to sort would give us 10.0.5.