git: f0ec0fda01c3 - main - bsdinstall: Add quotes around error message argument
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 27 Jan 2022 17:15:11 UTC
The branch main has been updated by thj: URL: https://cgit.FreeBSD.org/src/commit/?id=f0ec0fda01c3ecd435201813ebbc929eeccf10a5 commit f0ec0fda01c3ecd435201813ebbc929eeccf10a5 Author: Tom Jones <thj@FreeBSD.org> AuthorDate: 2022-01-27 17:10:06 +0000 Commit: Tom Jones <thj@FreeBSD.org> CommitDate: 2022-01-27 17:14:30 +0000 bsdinstall: Add quotes around error message argument When error is called with a message with spaces (and probably multiple lines) these are passed into dialog unquoted and an error message was presented, wrap with quotes. Reviewed by: bapt, allanjude Sponsored by: Ampere Computing LLC Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D33918 --- usr.sbin/bsdinstall/scripts/fetchmissingdists | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bsdinstall/scripts/fetchmissingdists b/usr.sbin/bsdinstall/scripts/fetchmissingdists index 768217e2fb8c..820a5275b2c9 100644 --- a/usr.sbin/bsdinstall/scripts/fetchmissingdists +++ b/usr.sbin/bsdinstall/scripts/fetchmissingdists @@ -30,7 +30,7 @@ error() { - dialog --backtitle "FreeBSD Installer" --title "Error" --msgbox $1 0 0 + dialog --backtitle "FreeBSD Installer" --title "Error" --msgbox "$1" 0 0 exit 1 }