wazuh-indexer/build-scripts/check-version.sh
Jorge Sánchez 21cf3e542d
Migrate workflows and scripts from 6.0.0 (#861)
Signed-off-by: Jorge Sanchez <jorge.sanchez@wazuh.com>
2025-10-31 12:53:36 +01:00

12 lines
339 B
Bash

#!/bin/bash
# Check if VERSION file has exactly one line and that line is non-empty
if [ "$(jq -e .version VERSION.json)" -ne 0 ]; then
echo "Error: VERSION file must contain a 'version' field."
exit 1
fi
if [ "$(jq -e .stage VERSION.json)" -ne 0 ]; then
echo "Error: VERSION file must contain a 'stage' field."
exit 1
fi