From 2673501129bd677fefe6d174ffb47f5303919761 Mon Sep 17 00:00:00 2001 From: Tostti Date: Tue, 16 Apr 2024 16:23:42 -0300 Subject: [PATCH] Try possible fix --- dev-tools/build-packages/base/generate_base.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dev-tools/build-packages/base/generate_base.sh b/dev-tools/build-packages/base/generate_base.sh index 105c4c1fb7b5..7689edd7c8f2 100755 --- a/dev-tools/build-packages/base/generate_base.sh +++ b/dev-tools/build-packages/base/generate_base.sh @@ -118,11 +118,10 @@ build() { fi tar -zxf wazuh-dashboard.tar.gz - echo "a" $(tar -tf wazuh-dashboard.tar.gz) - echo "b" - directory_name=$(tar -tvf wazuh-dashboard.tar.gz | head -1 | sed 's#/.*##' | sort -u) + a=$(tar -tzf wazuh-dashboard.tar.gz |head -1| sed 's#/.*##' | sort -u) + echo "A" $a + directory_name=$(tar -tzf wazuh-dashboard.tar.gz | head -1 | sed 's#/.*##' | sort -u) working_dir="wazuh-dashboard-$version-$revision-linux-x64" - echo $directory_name $working_dir mv $directory_name $working_dir cd $working_dir