From 157b6a9f9d1cb5b49a9894df65969f0658b5c412 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 22 Oct 2022 19:25:15 +0200 Subject: skip neu --- Brotbacken.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Brotbacken.sh b/Brotbacken.sh index c766382..442b542 100755 --- a/Brotbacken.sh +++ b/Brotbacken.sh @@ -9,11 +9,16 @@ espeak-ng -vde -w "$tmp_sir/Ofen_runter.wav" 'Dreh bitte den Ofen runter!' espeak-ng -vde -w "$tmp_dir/Ofen_aus.wav" 'Mach bitte den Ofen aus und nimm den Deckel runter!' espeak-ng -vde -w "$tmp_dir/Brot_raus.wav" 'Nimm bitte das Brot raus!' +skip=${1:-0} -sleep 20m -play "$tmp_dir/Ofen_an.wav" -sleep 40m -play "$tmp_dir/Brot_rein.wav" +if [ ${skip} -lt 1 ]; then + sleep 20m + play "$tmp_dir/Ofen_an.wav" +fi +if [ ${skip} -lt 2 ]; then + sleep 40m + play "$tmp_dir/Brot_rein.wav" +fi sleep 5m play "$tmp_dir/Ofen_runter.wav" sleep 40m -- cgit v1.2.3-70-g09d2