From 0d2ad16c0714ce62949ef39db673aa2b607c41e3 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 16 Oct 2022 02:00:00 +0200 Subject: guix-install.sh: Cosmetically tweak non-interactive output. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avoid printing Press return to continue...[1666352494.051]: Starting installation… [1666352648.869]: … when the return itself wasn't echoed on the console. * etc/guix-install.sh (welcome): Add a carriage return to the prompt, so that the next line of output may overwrite it. --- etc/guix-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc/guix-install.sh') diff --git a/etc/guix-install.sh b/etc/guix-install.sh index 152accef77..c8ef59d4a4 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -607,7 +607,8 @@ This script installs GNU Guix on your system https://www.gnu.org/software/guix/ EOF - echo -n "Press return to continue..." + # Don't use ‘read -p’ here! It won't display when run non-interactively. + echo -n "Press return to continue..."$'\r' read -r char if [ "$char" ]; then echo -- cgit v1.2.3