notification.sh: Fixed Terminal test of STDIN

This commit is contained in:
Malte Bublitz 2023-10-31 17:57:41 +01:00
parent b4c242d48f
commit 2aff11395c
Signed by: malte70
GPG key ID: 605DA5C729F9C184

View file

@ -3,10 +3,8 @@
source "$(dirname $0)/.env" source "$(dirname $0)/.env"
#LINE1='Backup finished!' [[ -t 0 ]] && printf "Line 1> "; read LINE1
#LINE2='' [[ -t 0 ]] && printf "Line 2> "; read LINE2
[ -t /dev/stdin ] && printf "Line 1> "; read LINE1
[ -t /dev/stdin ] && printf "Line 2> "; read LINE2
LED_BLINK=".5s" LED_BLINK=".5s"
#DISPLAY_DURATION="4s" #DISPLAY_DURATION="4s"
DISPLAY_DURATION="10s" DISPLAY_DURATION="10s"