Fix DEB packaging OS_VERSION extraction syntax

- Use eval with grep instead of awk to avoid quote escaping issues
- Extract VERSION_ID from /etc/os-release safely
This commit is contained in:
torsten committed 2026-11-12 23:28:46 +00:00
1 parent decb12181d
commit edea4343f4
1 file changed
+2 -1
@@ -784,7 +784,8 @@ fi
if [[ "${RUN_JENKINS_BUILDER}" == "ON" ]]; then
log_info "=== DEB Package Production (in-tree rpmbuild) ==="
OS_VERSION=$(cat /etc/os-release | grep "^VERSION_ID=" | cut -d'"' -f2)
# Extract OS version for package naming
OS_VERSION=$(eval $(grep "^VERSION_ID=" /etc/os-release) && echo "$VERSION_ID")
STAGE_DIR=/workspace/deb_stage
STAGED_SOURCE_DIR="${STAGE_DIR}"