display actual tar1090 version instead of install date

This commit is contained in:
Matthias Wirth
2024-05-18 18:06:56 +02:00
parent e18c730c59
commit e338897369
2 changed files with 3 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ if [[ "$1" == "test" ]] || [[ -n "$git_source" ]]; then
cp -r ./* "$gpath/git"
fi
cd "$gpath/git"
TAR_VERSION="$(date +%s)_${RANDOM}${RANDOM}"
TAR_VERSION="$(cat version)_dirty"
else
VERSION_NEW=$(curl --silent --show-error "https://raw.githubusercontent.com/wiedehopf/tar1090/master/version")
if [[ "$(cat "$gpath/git/version" 2>/dev/null)" != "$VERSION_NEW" ]]; then
@@ -327,7 +327,7 @@ do
dir=$(pwd)
cd "$TMP"
sed -i -e "s/tar1090 on github/tar1090 on github ($(date +%y%m%d))/" index.html
sed -i -e "s/tar1090 on github/tar1090 on github (${TAR_VERSION})/" index.html
"$gpath/git/cachebust.sh" "$gpath/git/cachebust.list" "$TMP"