From ab267a6b5f5a33d3965c120651b6a2bc3176cdb4 Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Wed, 7 Aug 2024 13:14:54 -0700 Subject: [PATCH] Fixes stash untrack file issue --- tools/scripts/build-website.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/scripts/build-website.sh b/tools/scripts/build-website.sh index 4699410447d..726c6ef369f 100755 --- a/tools/scripts/build-website.sh +++ b/tools/scripts/build-website.sh @@ -12,7 +12,7 @@ for i in {1..4}; do versions="$versions, {\"version\":\"v$version\",\"title\":\"v$version\",\"aliases\":[]}" done versions="$versions]" -echo "$versions" | jq "." > "$BASE_DIR/../../versions.json" +echo "$versions" | jq "." >"$BASE_DIR/../../versions.json" VERSION_NUMBER=$1 if [[ "$VERSION_NUMBER" == "" ]]; then @@ -33,7 +33,6 @@ fi echo "Building docs for $VERSION_NUMBER" mike deploy "$VERSION_NUMBER" -F docs/mkdocs.yml -b gh-pages -git stash +git stash -u git checkout gh-pages git stash pop -