From 087738c1ec0345707479c3c41ad62b606aef2398 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 23 Oct 2024 15:52:13 -0300 Subject: [PATCH] Fix systems validation --- .github/workflows/build_wazuh_dashboard_with_plugins.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wazuh_dashboard_with_plugins.yml b/.github/workflows/build_wazuh_dashboard_with_plugins.yml index 08d2df3377bb..7775dafbf009 100644 --- a/.github/workflows/build_wazuh_dashboard_with_plugins.yml +++ b/.github/workflows/build_wazuh_dashboard_with_plugins.yml @@ -93,11 +93,11 @@ jobs: steps: - name: Validate inputs run: | - if { [ "${{ inputs.architecture }}" = "amd64" ] || [ "${{ inputs.architecture }}" = "arm64" ]; } && [ "${{ inputs.system }}" = "rpm" ]; then + if [[ "${{ inputs.architecture }}" == "amd64" || "${{ inputs.architecture }}" == "arm64" ]] && [[ "${{ inputs.system }}" == "rpm" ]]; then echo "Invalid combination of architecture and system" exit 1 fi - if {[ "${{ inputs.architecture }}" = "x86_64" ] || [ "${{ inputs.architecture }}" = "aarch64" ]; } && [ "${{ inputs.system }}" = "deb" ]; then + if [[ "${{ inputs.architecture }}" == "x86_64" || "${{ inputs.architecture }}" == "aarch64" ]] && [[ "${{ inputs.system }}" == "deb" ]]; then echo "Invalid combination of architecture and system" exit 1 fi