diff options
Diffstat (limited to 'defaults/initrd.scripts')
-rw-r--r-- | defaults/initrd.scripts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 4b7c5ba..97997b3 100644 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -446,9 +446,11 @@ prompt_user(){ eval local oldvalue='$'${1} - [ $# != 2 -a $# != 3 ] && \ + if [ $# != 2 -a $# != 3 ]; then bad_msg "Bad invocation of function prompt_user." - bad_msg "Please file a bug report with this message" && exit 1 + bad_msg "Please file a bug report with this message" + exit 1 + fi [ -n "${3}" ] && local explnt=" or : ${3}" || local explnt="." bad_msg "Could not find the ${2} in ${oldvalue}${explnt}" |