From a3597c14a3ea901a7f9383ce923b4847236c6747 Mon Sep 17 00:00:00 2001 From: Floodnut Date: Sat, 1 Feb 2025 21:16:20 +0900 Subject: [PATCH] fix: add eof --- helm/sources.txt | 2 +- helm/sync.sh | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/helm/sources.txt b/helm/sources.txt index 41bca12..ad8aa4a 100644 --- a/helm/sources.txt +++ b/helm/sources.txt @@ -1 +1 @@ -https://github.com/apache/couchdb-helm.git \ No newline at end of file +https://github.com/apache/couchdb-helm.git diff --git a/helm/sync.sh b/helm/sync.sh index 72e50a5..d391008 100755 --- a/helm/sync.sh +++ b/helm/sync.sh @@ -5,14 +5,6 @@ REPO_DIR="$(pwd)" CHARTS_DIR="${REPO_DIR}/helm/charts" SOURCES_FILE="${REPO_DIR}/helm/sources.txt" -echo Chart dir is $CHARTS_DIR -echo Source file is $SOURCES_FILE - -if [[ ! -f "$SOURCES_FILE" ]]; then - echo "Error: $SOURCES_FILE not found!" - exit 1 -fi - while read -r repo; do echo Sync $repo... @@ -32,7 +24,6 @@ while read -r repo; do echo "Cloning $repo_name..." git clone --depth=1 "$repo" "$repo_path" - # 기본 브랜치 확인 후 Checkout cd "$repo_path" default_branch=$(git remote show origin | awk '/HEAD branch/ {print $NF}') git checkout "$default_branch" || true