Change the script to ignore non interactive ssh shells
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user