Skip to content

Commit c8862b5

Browse files
committed
[squash]
1 parent 7cfaaab commit c8862b5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

updater.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ if [ -z "$SSH_KEY_E" ]; then
2323
echo "SSH key not found!" >&2
2424
ecode=1
2525
elif git log -1 --pretty=format:%s | grep -qiF '[squash]'; then
26-
base64 -d <<< "$SSH_KEY_E" | gunzip -c > ~/.ssh/id_rsa
27-
chmod 400 ~/.ssh/id_rsa
28-
export GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa"
26+
base64 -d <<< "$SSH_KEY_E" | gunzip -c > ~/.ssh/id_ed25519
27+
chmod 400 ~/.ssh/id_ed25519
28+
export GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519"
2929

3030
git clone --depth=1 --branch="$BRANCH" "[email protected]:$REMOTE.git" work
3131
cd work
@@ -42,9 +42,9 @@ if [ -z "$SSH_KEY_E2" ]; then
4242
echo "Alternate SSH key not found!" >&2
4343
ecode=1
4444
else
45-
base64 -d <<< "$SSH_KEY_E2" | gunzip -c > ~/.ssh/id_ecdsa
46-
chmod 400 ~/.ssh/id_ecdsa
47-
export GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ecdsa"
45+
base64 -d <<< "$SSH_KEY_E2" | gunzip -c > ~/.ssh/id_ed25519
46+
chmod 400 ~/.ssh/id_ed25519
47+
export GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519"
4848

4949
rm -rf .github .gitignore *.sh CNAME
5050
git checkout --orphan temp

0 commit comments

Comments
 (0)