From d1b57c1d68fa60a4a67c208f29b739ef0f20d5c5 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 3 Dec 2024 17:33:13 +0800 Subject: Update --- bin/mail/append_authorized_key.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/mail/append_authorized_key.sh') 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)" test -f ~/.config/passphase || exit 1 PASSPHASE="$(cat ~/.config/passphase)" -# Only execute the following script when header matched +# Check passphase, or exit 0 grep -qE "^Passphase: ${PASSPHASE}" <<<"$MAIL" || exit 0 # Append comment and last line to ~/.ssh/authorized_keys -- cgit v1.2.3-70-g09d2