Skip to content

Commit

Permalink
Merge pull request #2708 from wazuh/bug/2702-the-git-package-should-n…
Browse files Browse the repository at this point in the history
…ot-be-a-dependency-to-build-the-wazuh-unattended-scripts

Fixed `source_branch` variable definition
  • Loading branch information
teddytpc1 authored Dec 19, 2023
2 parents 340abef + 2c8724f commit ad35e08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unattended_installer/builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ readonly resources_certs="${base_path_builder}/cert_tool"
readonly resources_passwords="${base_path_builder}/passwords_tool"
readonly resources_common="${base_path_builder}/common_functions"
readonly resources_download="${base_path_builder}/downloader"
readonly source_directory="$(git rev-parse --show-toplevel)"
source_branch=`cat ${source_directory}/VERSION`
readonly source_directory="$( cd $(dirname $0) ; pwd -P )"
source_branch=$(cat ${source_directory}/../VERSION)

function getHelp() {

Expand Down

0 comments on commit ad35e08

Please sign in to comment.