From acf7566983dc78dcdbfa1e88b4d201077a6bf72c Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Tue, 18 Mar 2025 00:30:07 -0400 Subject: [PATCH] AutoYADM commit: 2025-03-18 00:30:07 --- .config/mail/mail-indicator.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/mail/mail-indicator.sh b/.config/mail/mail-indicator.sh index a4f76514..b654163b 100755 --- a/.config/mail/mail-indicator.sh +++ b/.config/mail/mail-indicator.sh @@ -5,8 +5,11 @@ PIPE="/tmp/email_refresh_pipe" # COUNT="/tmp/email_count" +if [ -f /tmp/email_indicator_lock ]; then + exit 1 +fi # Create pipe if doesn't exist -[[ -p "$PIPE" ]] || mkfifo "$PIPE" +[[ -p "$PIPE" ]] || mkfifo "$PIPE" && touch /tmp/email_indicator_lock # if [ ! -e "$COUNT" ]; then # echo "0" > "$COUNT"