From: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Date: Mon, 15 Sep 2025 15:22:17 +0000 (+0000) Subject: Update support/version to use hyphen instead of tilde for git hash X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6919f8ff6ad8c81c318a47f5fe376d76422905b6;p=thirdparty%2Ftvheadend.git Update support/version to use hyphen instead of tilde for git hash Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com> --- diff --git a/support/version b/support/version index 5d99544ec..90b842050 100755 --- a/support/version +++ b/support/version @@ -16,7 +16,7 @@ if [ -d ".git" ]; then VER=$(cd "$(dirname "$0")/.."; git describe --match "v*" 2> /dev/null) [ -z "$VER" ] && VER="0.0.0-unknown" fi - VER=$(echo $VER | sed "s/^v//" | sed "s/-\([0-9]*\)-\(g[0-9a-f]*\)/-\1~\2/") + VER=$(echo $VER | sed "s/^v//" | sed "s/-\([0-9]*\)-\(g[0-9a-f]*\)/-\1-\2/") elif [ -f "$(dirname "$0")/../debian/changelog" ]; then VER=$(head -1 "$(dirname "$0")/../debian/changelog" | awk '{ print $2 }' | tr -d '()' | cut -d '-' -f 1-2) elif [ -r "$(dirname "$0")/../rpm/version" ]; then