Skip to content

Commit

Permalink
Try move
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjan Dikhoff committed Oct 25, 2024
1 parent d82a324 commit f0b9ffa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ if [ -n "$CF_PAGES" ]
then
echo "We are on Cloudflare Pages. Retrieve branch from env."
GIT_BRANCH=$CF_PAGES_BRANCH

echo "Remove Cloudflare redirect."
# HACK: Remove annoying https redirect. I presume this was used by Cloudflare
insteadof=`git config --list | grep insteadof`
remove=`echo $insteadof | cut -d "=" -f 1`
git config --global --unset $remove
fi
GIT_COMMIT_MESSAGE="branch $GIT_BRANCH on $DATE"
GIT_LIVE_BRANCH=${2:-develop}
Expand Down Expand Up @@ -71,6 +65,12 @@ echo "Using ssh command: $SSH_COMMAND"

if [ -n "$CF_PAGES" ]
then
echo "Remove Cloudflare redirect."
# HACK: Remove annoying https redirect. I presume this was used by Cloudflare
insteadof=`git config --list | grep insteadof`
remove=`echo $insteadof | cut -d "=" -f 1`
git config --global --unset $remove

echo "We are on Cloudflare Pages. Setting custom ssh key and method"
mkdir ~/.ssh
echo "$BUILD_SSH_KEY" > ~/.ssh/id_ed25519
Expand Down

0 comments on commit f0b9ffa

Please sign in to comment.