aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/mail/append_authorized_key.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mail/append_authorized_key.sh')
-rwxr-xr-xbin/mail/append_authorized_key.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mail/append_authorized_key.sh b/bin/mail/append_authorized_key.sh
index 950be90..3686959 100755
--- a/bin/mail/append_authorized_key.sh
+++ b/bin/mail/append_authorized_key.sh
@@ -13,7 +13,7 @@ MAIL="$(cat)"
13test -f ~/.config/passphase || exit 1 13test -f ~/.config/passphase || exit 1
14PASSPHASE="$(cat ~/.config/passphase)" 14PASSPHASE="$(cat ~/.config/passphase)"
15 15
16# Only execute the following script when header matched 16# Check passphase, or exit 0
17grep -qE "^Passphase: ${PASSPHASE}" <<<"$MAIL" || exit 0 17grep -qE "^Passphase: ${PASSPHASE}" <<<"$MAIL" || exit 0
18 18
19# Append comment and last line to ~/.ssh/authorized_keys 19# Append comment and last line to ~/.ssh/authorized_keys