From abe04c3db858a5cb5c5eb5bf2ed45599bca94806 Mon Sep 17 00:00:00 2001 From: Tostti Date: Wed, 17 Apr 2024 09:59:17 -0300 Subject: [PATCH] Add second workaround approach --- dev-tools/build-packages/base/generate_base.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dev-tools/build-packages/base/generate_base.sh b/dev-tools/build-packages/base/generate_base.sh index 42c17ed0897d..8e78494c18bf 100755 --- a/dev-tools/build-packages/base/generate_base.sh +++ b/dev-tools/build-packages/base/generate_base.sh @@ -118,8 +118,7 @@ build() { fi tar -zxf wazuh-dashboard.tar.gz - tar -tzf wazuh-dashboard.tar.gz > gzContent - directory_name=$(head -1 gzContent | sed 's#/.*##' | sort -u) + directory_name=$(ls -t | head -1) working_dir="wazuh-dashboard-$version-$revision-linux-x64" mv $directory_name $working_dir cd $working_dir