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
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user