guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

26/33: guix-install.sh: Cosmetically tweak non-interactive output.


From: guix-commits
Subject: 26/33: guix-install.sh: Cosmetically tweak non-interactive output.
Date: Fri, 21 Oct 2022 13:20:55 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 0d2ad16c0714ce62949ef39db673aa2b607c41e3
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Oct 16 02:00:00 2022 +0200

    guix-install.sh: Cosmetically tweak non-interactive output.
    
    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(-)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]