diff --git a/git_update.sh b/git_update.sh index db3966c..58a6f02 100644 --- a/git_update.sh +++ b/git_update.sh @@ -5,6 +5,7 @@ . "$PIPELINE_REPO_PATH/utils.sh" # =====( MAIN )===== # +cd "$PIPELINE_REPO_PATH" || 1 # Check that we received the branch name if [ -n "$BRANCH_NAME" ]; then diff --git a/main.sh b/main.sh index 0ac4d76..fd66bac 100644 --- a/main.sh +++ b/main.sh @@ -25,10 +25,6 @@ parse_args() { # ====( CONSTANTS )==== # PIPELINE_REPO_PATH="/root/wazuh_pipeline" -# Clone intial repo -git clone "$REPO_URL" -cd "$PIPELINE_REPO_PATH" || 1 - # ====( IMPORTS )==== # # shellcheck disable=SC1091 . "$PIPELINE_REPO_PATH/utils.sh"