Skip to content

Commit

Permalink
fix: add eof
Browse files Browse the repository at this point in the history
  • Loading branch information
Floodnut committed Feb 1, 2025
1 parent 22f7596 commit a3597c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion helm/sources.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://github.com/apache/couchdb-helm.git
https://github.com/apache/couchdb-helm.git
9 changes: 0 additions & 9 deletions helm/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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...

Expand All @@ -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
Expand Down

0 comments on commit a3597c1

Please sign in to comment.