From c98bee647045ce832ef2a588c2d303f0aeea45eb Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Wed, 5 Jan 2022 05:40:32 -0800 Subject: [PATCH] Fix build script to use correct branch name --- .deployment/cd.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.deployment/cd.sh b/.deployment/cd.sh index 913439cc..5c5c2ffe 100644 --- a/.deployment/cd.sh +++ b/.deployment/cd.sh @@ -1,6 +1,10 @@ #!/bin/sh -git switch master || git switch -c master +if [[ -z "${CF_PAGES_BRANCH}" ]]; then + git switch master || git switch -c unknown-branch +else + git switch $CF_PAGES_BRANCH || git switch -c $CF_PAGES_BRANCH +fi echo 🔧 Install Rust curl https://sh.rustup.rs -sSf | sh -s -- -y