From 2aff11395cf91908a98b0e3c3cc5ffc24e78bc77 Mon Sep 17 00:00:00 2001 From: Malte Bublitz Date: Tue, 31 Oct 2023 17:57:41 +0100 Subject: [PATCH] notification.sh: Fixed Terminal test of STDIN --- notification.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/notification.sh b/notification.sh index a7bf027..eac6634 100755 --- a/notification.sh +++ b/notification.sh @@ -3,10 +3,8 @@ source "$(dirname $0)/.env" -#LINE1='Backup finished!' -#LINE2='' -[ -t /dev/stdin ] && printf "Line 1> "; read LINE1 -[ -t /dev/stdin ] && printf "Line 2> "; read LINE2 +[[ -t 0 ]] && printf "Line 1> "; read LINE1 +[[ -t 0 ]] && printf "Line 2> "; read LINE2 LED_BLINK=".5s" #DISPLAY_DURATION="4s" DISPLAY_DURATION="10s"