From 828bdb1b293c2b4da30a8b8deb3e1d5d581ebbd8 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 26 Jul 2026 02:01:31 +0200 Subject: [PATCH] fix: Preserve Server Evaluation identity during image detection (#1975) --- src/image.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/image.sh b/src/image.sh index ac0b6911..5246849b 100644 --- a/src/image.sh +++ b/src/image.sh @@ -220,6 +220,21 @@ getVersions() { continue fi + local evaluation="" + + if [[ "${image,,}" == *"evaluation"* || + "${display,,}" == *"evaluation"* || + "${product,,}" == *"evaluation"* || + "${edition_id,,}" == *"eval"* || + "${flags,,}" == *"eval"* ]]; then + evaluation="-eval" + fi + + if [ -n "$evaluation" ] && + [[ "${candidate_id,,}" != *"-eval" ]]; then + candidate_id+="$evaluation" + fi + local key="${candidate_id,,}" # Some client media use the same friendly name-derived ID for distinct @@ -246,7 +261,7 @@ getVersions() { esac if [ -n "$structured" ]; then - candidate_id="$candidate_base-$structured" + candidate_id="$candidate_base-$structured$evaluation" key="${candidate_id,,}" fi fi