Skip to content

Commit 0219f06

Browse files
committed
Fix build script to use correct branch name
1 parent 6a2ae55 commit 0219f06

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.deployment/cd.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/bin/sh
22

3-
git switch master || git switch -c master
3+
if [[ -z "${CF_PAGES_BRANCH}" ]]; then
4+
git switch master || git switch -c unknown-branch
5+
else
6+
git switch $CF_PAGES_BRANCH || git switch -c $CF_PAGES_BRANCH
7+
fi
48

59
echo 🔧 Install Rust
610
curl https://sh.rustup.rs -sSf | sh -s -- -y

0 commit comments

Comments
 (0)