diff options
Diffstat (limited to 'bin/mail/append_authorized_key.sh')
-rwxr-xr-x | bin/mail/append_authorized_key.sh | 2 |
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)" | |||
13 | test -f ~/.config/passphase || exit 1 | 13 | test -f ~/.config/passphase || exit 1 |
14 | PASSPHASE="$(cat ~/.config/passphase)" | 14 | PASSPHASE="$(cat ~/.config/passphase)" |
15 | 15 | ||
16 | # Only execute the following script when header matched | 16 | # Check passphase, or exit 0 |
17 | grep -qE "^Passphase: ${PASSPHASE}" <<<"$MAIL" || exit 0 | 17 | grep -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 |