From e3388973698db31cdba3d1e44743d43ccf79ecb0 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sat, 18 May 2024 18:06:56 +0200 Subject: [PATCH] display actual tar1090 version instead of install date --- html/index.html | 2 +- install.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/html/index.html b/html/index.html index c82ce26..c8a458c 100644 --- a/html/index.html +++ b/html/index.html @@ -883,7 +883,7 @@ - tar1090 on github + tar1090 on github diff --git a/install.sh b/install.sh index 8fca871..f8d890b 100755 --- a/install.sh +++ b/install.sh @@ -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"