From 2933075e83c6b3315ba0bacc48afce1321ad1f8a Mon Sep 17 00:00:00 2001 From: ArmandMeppa Date: Mon, 24 Feb 2025 10:22:56 +0100 Subject: [PATCH] fix: fix version.txt download --- scripts/setup-agent.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup-agent.sh b/scripts/setup-agent.sh index 2600750..4137a5f 100644 --- a/scripts/setup-agent.sh +++ b/scripts/setup-agent.sh @@ -138,7 +138,7 @@ fi # Step 6: Download version file info_message "Downloading version file..." -if ! (maybe_sudo curl -SL -s "https://raw.githubusercontent.com/ADORSYS-GIS/wazuh-agent/refs/tags/v$WAZUH_AGENT_TAG/version.txt" > "$OSSEC_PATH/version.txt") 2>&1; then +if ! (maybe_sudo curl -SL -s "https://raw.githubusercontent.com/ADORSYS-GIS/wazuh-agent/refs/tags/v$WAZUH_AGENT_TAG/version.txt" -o "$OSSEC_PATH/version.txt") 2>&1; then error_message "Failed to download version file" exit 1 fi