Skip to content

Commit

Permalink
Remove duplicate repo cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
alexchristy committed Jul 30, 2024
1 parent bf73acb commit d24a871
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions git_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d24a871

Please sign in to comment.