From 8b6b66aecf074bb1457671e5c1c0817ccf432158 Mon Sep 17 00:00:00 2001 From: Pierre Hyvernat Date: Mon, 18 Nov 2024 15:06:25 +0100 Subject: [PATCH] missing redirection to stderr for some messages --- missions/intermediate/06_control-C/Charmiglio.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/missions/intermediate/06_control-C/Charmiglio.sh b/missions/intermediate/06_control-C/Charmiglio.sh index 28755184..81c2275c 100755 --- a/missions/intermediate/06_control-C/Charmiglio.sh +++ b/missions/intermediate/06_control-C/Charmiglio.sh @@ -51,14 +51,14 @@ magical_reaction() { printf "%*s%s" "$indent" '' "$(random_string "$width" "$alpha")" >&2 if [ "$delay" -gt 2 ] && [ "$((delay % 10))" -eq 0 ] && [ "$show_msg" != 0 ] then - printf "\t\t$(gettext "You can stop the incantation with Control-c.")" + printf "\t\t$(gettext "You can stop the incantation with Control-c.")" >&2 show_msg=0 fi if [ "$((delay % 10))" -eq 1 ] then show_msg=1 fi - echo + echo >&2 sleep 0.1 done }