me
/
guix
Archived
1
0
Fork 0

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.
master
Tobias Geerinckx-Rice 2022-10-16 02:00:00 +02:00
parent a326e3085d
commit 0d2ad16c07
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 2 additions and 1 deletions

View File

@ -607,7 +607,8 @@ This script installs GNU Guix on your system
https://www.gnu.org/software/guix/ https://www.gnu.org/software/guix/
EOF 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 read -r char
if [ "$char" ]; then if [ "$char" ]; then
echo echo