From fbc642564b397872bb817a7de18dee2d0893ae8e0aea22104c75cf1e014ad843 Mon Sep 17 00:00:00 2001 From: ~purplebored Date: Wed, 24 Dec 2025 04:28:38 +0100 Subject: [PATCH] Change the script to ignore non interactive ssh shells --- ssh-login-ntfy.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ssh-login-ntfy.sh b/ssh-login-ntfy.sh index 4060f50..defb50e 100644 --- a/ssh-login-ntfy.sh +++ b/ssh-login-ntfy.sh @@ -1,4 +1,8 @@ #!/bin/bash +# Ignore non interactive git shells like git since that's just annoying. +if [ -z "$SSH_TTY" ]; then + exit 0 +fi # Your ntfy topic URL NTFY_TOPIC="bla bla bla"