I want to be able to have a generic link to the latest version on of file available for download to make things easier for clients.
Example: http://server.web.net/Adium/Adium-1.5.10.4.pkg
If it could be http://server.web.net/Adium/LATEST
The scripting side works fine, I just can't figure out the alias/link part.
latestfile=`find *.pkg | sort | tail -n 1`
echo $latestfile
This gets the correct file.
find *.pkg | sortsorts by name, not by date, so you rely on "sane" filenames here (and nobodytouching any old files). – nohillside Jul 31 '18 at 12:18find *.pkg | sortis not sorting by the version numbers of the packages. – fd0 Jul 31 '18 at 12:24