Skip to content

Commit 42617ca

Browse files
author
unpackerr-auto-releaser
committed
fix key perms
1 parent 365c056 commit 42617ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

init/archlinux/aur-deploy.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ push_it() {
1818
rm -rf release_repo
1919
}
2020

21+
set -e
22+
2123
# Make an id_rsa file with our secret.
2224
mkdir -p $HOME/.ssh
2325
KEY_FILE="$(mktemp -u $HOME/.ssh/XXXXX)"
24-
chmod 600 "${KEY_FILE}"
2526
echo "${DEPLOY_KEY}" > "${KEY_FILE}"
27+
chmod 600 "${KEY_FILE}"
2628
# Configure ssh to use this secret on a custom hostname.
2729
AUR_HOST="arch.$(basename $KEY_FILE)"
2830
printf "%s\n" \

0 commit comments

Comments
 (0)