From fc71289dc8e17a385e1f9acb776a036d0d02d215 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 30 Dec 2021 16:33:30 +0800 Subject: [PATCH] Bypass Jekyll build on the `gh-pages` branch --- tools/deploy.sh | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/tools/deploy.sh b/tools/deploy.sh index 84b2b10..14b88eb 100755 --- a/tools/deploy.sh +++ b/tools/deploy.sh @@ -98,6 +98,7 @@ flush() { shopt -s dotglob nullglob mv "$_backup_dir"/* . + [[ -f ".nojekyll" ]] || echo "" >".nojekyll" } deploy() { @@ -134,25 +135,25 @@ main() { while (($#)); do opt="$1" case $opt in - -c | --config) - _config="$2" - shift - shift - ;; - --dry-run) - # build & test, but not deploy - _opt_dry_run=true - shift - ;; - -h | --help) - help - exit 0 - ;; - *) - # unknown option - help - exit 1 - ;; + -c | --config) + _config="$2" + shift + shift + ;; + --dry-run) + # build & test, but not deploy + _opt_dry_run=true + shift + ;; + -h | --help) + help + exit 0 + ;; + *) + # unknown option + help + exit 1 + ;; esac done