MSIX packaging: fix determining the version & allow overriding it

This commit is contained in:
Moritz Bunkus 2022-09-14 19:39:28 +02:00
parent ba94a862c8
commit 77953c593d
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -5,7 +5,6 @@ set -e -x
cd "$(dirname "$(readlink -f "$0")")"
base_dir=${base_dir:-/z/home/mosu/files/html/bunkus.org/videotools/mkvtoolnix/windows/releases}
archive_dir="${archive_dir:-${base_dir}/${mtxversion}}"
function determine_latest_version {
ls "${base_dir}" | \
@ -15,7 +14,8 @@ function determine_latest_version {
tail -n 1
}
mtxversion=$(determine_latest_version)
mtxversion=${mtxversion:-$(determine_latest_version)}
archive_dir="${archive_dir:-${base_dir}/${mtxversion}}"
sign=