From ec2068f19ca59824e8b95e3ad356691feab1a174 Mon Sep 17 00:00:00 2001 From: fcaffieri Date: Thu, 16 Jun 2022 18:34:29 -0300 Subject: [PATCH] Fix buid.sh splunk and get inly minor version --- splunkapp/Docker/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/splunkapp/Docker/build.sh b/splunkapp/Docker/build.sh index 405c2c830e..4e9f9d4535 100755 --- a/splunkapp/Docker/build.sh +++ b/splunkapp/Docker/build.sh @@ -19,7 +19,7 @@ download_sources() { fi mv wazuh-* ${build_dir} wazuh_version=$(python -c "import json, os; f=open(\""${package_json}"\"); pkg=json.load(f); f.close(); print(pkg[\"version\"])") - splunk_version=$(python -c "import json, os; f=open(\""${package_json}"\"); pkg=json.load(f); f.close(); print(pkg[\"splunk\"])")} + splunk_version=$(python -c "import json, os; f=open(\""${package_json}"\"); pkg=json.load(f); f.close(); print(pkg[\"splunk\"].rsplit('.', 1)[0])") } remove_execute_permissions() {