From fc2fb2556627a8c6f73f291684add69b216a8754 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 4 Dec 2022 16:39:34 +0100 Subject: refactoring --- Brotbacken.sh | 51 +++++++++++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/Brotbacken.sh b/Brotbacken.sh index d7b6e7a..315df84 100755 --- a/Brotbacken.sh +++ b/Brotbacken.sh @@ -3,30 +3,29 @@ tmp_dir=$(mktemp -d) trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT -espeak-ng -vde -w "$tmp_dir/falten.wav" 'Bitte den Teig dehnen und falten!' -espeak-ng -vde -w "$tmp_dir/Ofen_an.wav" 'Dreh bitte den Ofen bis zum Anschlag an!' -espeak-ng -vde -w "$tmp_dir/Brot_rein.wav" 'Tue bitte das Brot rein!' -espeak-ng -vde -w "$tmp_dir/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} - -for ((i=skip; i<3; i++)); do - sleep 30m - play "$tmp_dir/falten.wav" +{ +cat <