diff --git a/dev-tools/build-packages/base/generate_base.sh b/dev-tools/build-packages/base/generate_base.sh index 1580cf4d1d17..dace39c210ca 100755 --- a/dev-tools/build-packages/base/generate_base.sh +++ b/dev-tools/build-packages/base/generate_base.sh @@ -84,15 +84,21 @@ build() { clean 1 else echo "Extracting Wazuh Dashboard base" + echo "a" + ls -l . unzip -q wazuh-dashboard.zip -d ./dashboards/ rm wazuh-dashboard.zip mv ./dashboards/$(ls ./dashboards) wazuh-dashboard.tar.gz + echo "B" + ls -l . fi else if ! curl --output wazuh-dashboard.tar.gz --silent --fail "${base}"; then echo "The given URL or Path to the Wazuh Dashboard base is not working: ${base}" clean 1 fi + echo "D" + ls -l . fi else echo "The given URL or Path to the Wazuh Dashboard base is not valid: ${base}" @@ -117,9 +123,12 @@ build() { clean 1 fi + echo "c" + ls -l tar -zxf wazuh-dashboard.tar.gz directory_name=$(tar tf 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