From 13919e205077c0d2fd4fc5c5e3d0f464e0e0537e Mon Sep 17 00:00:00 2001 From: Charlie Drage Date: Wed, 8 Feb 2023 16:09:33 -0500 Subject: [PATCH] update sync script again (#1578) Signed-off-by: Charlie Drage --- script/manual-docs-sync.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/manual-docs-sync.sh b/script/manual-docs-sync.sh index 89fc7a02..87f10992 100755 --- a/script/manual-docs-sync.sh +++ b/script/manual-docs-sync.sh @@ -5,7 +5,7 @@ ## cd script ## ./manual-docs-sync.sh ## -## This will take all documentation from the /docs folder of the master dir and push to the gh-pages branch (granted you have access) +## This will take all documentation from the /docs folder of the main dir and push to the gh-pages branch (granted you have access) DOCS_REPO_NAME="kompose" DOCS_REPO_URL="git@github.com:kubernetes/kompose.git" @@ -15,12 +15,12 @@ DOCS_FOLDER="docs" # clone the repo git clone "$DOCS_REPO_URL" "$DOCS_REPO_NAME" -# change to that directory (to prevent accidental pushing to master, etc.) +# change to that directory (to prevent accidental pushing to main, etc.) cd "$DOCS_REPO_NAME" -# switch to gh-pages and grab the docs folder from master +# switch to gh-pages and grab the docs folder from main git checkout gh-pages -git checkout master docs +git checkout main docs # Copy it all over to the current directory cp -r docs/* . @@ -28,7 +28,7 @@ rm -r docs git add --all -# Check if anything changed, and if it's the case, push to origin/master. +# Check if anything changed, and if it's the case, push to origin/main. if git commit -m 'Update docs' -m "Synchronize documentation against website" ; then git push fi