diff options
Diffstat (limited to 'usr.sbin/sysinstall/variable.c')
| -rw-r--r-- | usr.sbin/sysinstall/variable.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/variable.c b/usr.sbin/sysinstall/variable.c index 7a3e80a60cf4a..4bd2e78e423ff 100644 --- a/usr.sbin/sysinstall/variable.c +++ b/usr.sbin/sysinstall/variable.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id$ + * $Id: variable.c,v 1.17 1997/02/22 14:12:38 peter Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -146,8 +146,11 @@ char * variable_get_value(char *var, char *prompt) { char *cp; - - if ((cp = msgGetInput(variable_get(var), prompt)) != NULL) + + cp = variable_get(var); + if (cp && variable_get(VAR_NONINTERACTIVE)) + return cp; + else if ((cp = msgGetInput(cp, prompt)) != NULL) variable_set2(var, cp); else cp = NULL; |
