Skip to content

Commit a7bb245

Browse files
committed
[squash]
1 parent c8862b5 commit a7bb245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

updater.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [ -z "$SSH_KEY_E" ]; then
2424
ecode=1
2525
elif git log -1 --pretty=format:%s | grep -qiF '[squash]'; then
2626
base64 -d <<< "$SSH_KEY_E" | gunzip -c > ~/.ssh/id_ed25519
27-
chmod 400 ~/.ssh/id_ed25519
27+
chmod 600 ~/.ssh/id_ed25519
2828
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
@@ -43,7 +43,7 @@ if [ -z "$SSH_KEY_E2" ]; then
4343
ecode=1
4444
else
4545
base64 -d <<< "$SSH_KEY_E2" | gunzip -c > ~/.ssh/id_ed25519
46-
chmod 400 ~/.ssh/id_ed25519
46+
chmod 600 ~/.ssh/id_ed25519
4747
export GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519"
4848

4949
rm -rf .github .gitignore *.sh CNAME

0 commit comments

Comments
 (0)