diff options
-rwxr-xr-x | Brotbacken.sh | 13 |
1 files 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 |