From 7ae6c74885a2e61b56cafe9dec0627d2c5d10577 Mon Sep 17 00:00:00 2001 From: Tostti Date: Wed, 17 Apr 2024 11:00:55 -0300 Subject: [PATCH] Apply working solution to all the failing places --- dev-tools/build-packages/deb/launcher.sh | 2 +- dev-tools/build-packages/rpm/launcher.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-tools/build-packages/deb/launcher.sh b/dev-tools/build-packages/deb/launcher.sh index 1ccc701f4f96..2eb463d1139e 100755 --- a/dev-tools/build-packages/deb/launcher.sh +++ b/dev-tools/build-packages/deb/launcher.sh @@ -81,8 +81,8 @@ build_deb() { echo # Prepare the package - directory_name=$(tar tf wazuh-dashboard.tar.gz | head -1 | sed 's#/.*##' | sort -u) tar -zxf wazuh-dashboard.tar.gz + directory_name=$(ls -t | head -1) rm wazuh-dashboard.tar.gz mv $directory_name wazuh-dashboard-base jq '.wazuh.revision="'${revision}'"' wazuh-dashboard-base/package.json > pkgtmp.json && mv pkgtmp.json wazuh-dashboard-base/package.json diff --git a/dev-tools/build-packages/rpm/launcher.sh b/dev-tools/build-packages/rpm/launcher.sh index cc2996240461..0cd7fb16559e 100755 --- a/dev-tools/build-packages/rpm/launcher.sh +++ b/dev-tools/build-packages/rpm/launcher.sh @@ -82,8 +82,8 @@ build_rpm() { echo # Prepare the package - directory_name=$(tar tf wazuh-dashboard.tar.gz | head -1 | sed 's#/.*##' | sort -u) tar -zxf wazuh-dashboard.tar.gz + directory_name=$(ls -t | head -1) rm wazuh-dashboard.tar.gz mv $directory_name wazuh-dashboard-base jq '.wazuh.revision="'${revision}'"' wazuh-dashboard-base/package.json > pkgtmp.json && mv pkgtmp.json wazuh-dashboard-base/package.json