[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/33: guix-install.sh: Warn if we suspect dodgy automation.
From: |
guix-commits |
Subject: |
25/33: guix-install.sh: Warn if we suspect dodgy automation. |
Date: |
Fri, 21 Oct 2022 13:20:54 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit a326e3085da451c82ea461116ea1f59318f0f81d
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Oct 16 02:00:00 2022 +0200
guix-install.sh: Warn if we suspect dodgy automation.
This doesn't affect the installation (yet), but reserves the right to
default to safe values other than ‘y’ in future.
* etc/guix-install.sh (welcome): Warn if the ‘return’ wasn't.
---
etc/guix-install.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 43dea3b605..152accef77 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -581,6 +581,7 @@ fi
welcome()
{
+ local char
cat<<"EOF"
░░░ ░░░
░░▒▒░░░░░░░░░ ░░░░░░░░░▒▒░░
@@ -607,7 +608,13 @@ This script installs GNU Guix on your system
https://www.gnu.org/software/guix/
EOF
echo -n "Press return to continue..."
- read -r
+ read -r char
+ if [ "$char" ]; then
+ echo
+ echo "...that ($char) was not a return!"
+ _msg "${WAR}Use newlines to automate installation, e.g.: yes '' |
${0##*/}"
+ _msg "${WAR}Any other method is unsupported and likely to break in
future."
+ fi
}
main()
- 28/33: gnu: headsetcontrol: Update to 2.6.1., (continued)
- 28/33: gnu: headsetcontrol: Update to 2.6.1., guix-commits, 2022/10/21
- 07/33: gnu: hdparm: Update to 9.65., guix-commits, 2022/10/21
- 08/33: gnu: pd: Update to 0.52-2., guix-commits, 2022/10/21
- 23/33: guix-install.sh: Suggest what to do if fetching OpenPGP key(s) fails., guix-commits, 2022/10/21
- 24/33: guix-install.sh: Treat all uncaught errors as fatal., guix-commits, 2022/10/21
- 26/33: guix-install.sh: Cosmetically tweak non-interactive output., guix-commits, 2022/10/21
- 13/33: gnu: Add iir., guix-commits, 2022/10/21
- 14/33: gnu: dosbox-staging: Remove input labels., guix-commits, 2022/10/21
- 16/33: gnu: maradns: Update to 3.5.0022., guix-commits, 2022/10/21
- 19/33: gnu: imapfilter: Update to 2.7.6., guix-commits, 2022/10/21
- 25/33: guix-install.sh: Warn if we suspect dodgy automation.,
guix-commits <=
- 01/33: gnu: audit: Update to 3.0.9., guix-commits, 2022/10/21
- 03/33: gnu: jitterentropy-rngd: Use G-expressions., guix-commits, 2022/10/21
- 04/33: gnu: criu: Update to 3.17.1., guix-commits, 2022/10/21
- 15/33: gnu: dosbox-staging: Update to 0.79.1., guix-commits, 2022/10/21
- 09/33: gnu: pd: Remove trailing #t from phases., guix-commits, 2022/10/21
- 17/33: gnu: dnsmasq: Update to 2.87., guix-commits, 2022/10/21
- 21/33: gnu: lldpd: Update to 1.0.15., guix-commits, 2022/10/21
- 20/33: gnu: imapfilter: Use G-expressions., guix-commits, 2022/10/21
- 22/33: guix-install.sh: Time out fetching OpenPGP keys., guix-commits, 2022/10/21
- 27/33: gnu: diffoscope: Update to 224., guix-commits, 2022/10/21