Add missing {}. This made most/all scripted installs fail.

Approved by:	jkh
This commit is contained in:
phk 2001-09-14 18:29:08 +00:00
parent b773974249
commit 0ee0b82862
2 changed files with 4 additions and 2 deletions

View File

@ -204,7 +204,7 @@ installInitial(void)
/* If we refuse to proceed, bail. */
dialog_clear_norefresh();
if (!variable_get(VAR_NO_WARN))
if (!variable_get(VAR_NO_WARN)) {
if (msgYesNo(
"Last Chance! Are you SURE you want continue the installation?\n\n"
"If you're running this on a disk with data you wish to save\n"
@ -212,6 +212,7 @@ installInitial(void)
"proceeding!\n\n"
"We can take no responsibility for lost disk contents!") != 0)
return DITEM_FAILURE;
}
if (DITEM_STATUS(diskLabelCommit(NULL)) != DITEM_SUCCESS) {
msgConfirm("Couldn't make filesystems properly. Aborting.");

View File

@ -204,7 +204,7 @@ installInitial(void)
/* If we refuse to proceed, bail. */
dialog_clear_norefresh();
if (!variable_get(VAR_NO_WARN))
if (!variable_get(VAR_NO_WARN)) {
if (msgYesNo(
"Last Chance! Are you SURE you want continue the installation?\n\n"
"If you're running this on a disk with data you wish to save\n"
@ -212,6 +212,7 @@ installInitial(void)
"proceeding!\n\n"
"We can take no responsibility for lost disk contents!") != 0)
return DITEM_FAILURE;
}
if (DITEM_STATUS(diskLabelCommit(NULL)) != DITEM_SUCCESS) {
msgConfirm("Couldn't make filesystems properly. Aborting.");