From b30ce11a9614ade0109ffe181dc44e87db85599c Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Sat, 3 Nov 2012 22:50:25 +0000 Subject: [PATCH] Stop "selecting default values" overriding them as empty strings --- installers/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index 30a6717..1678662 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -19,10 +19,10 @@ function install_error() { function config_installation() { install_log "Configure installation" echo -n "Install directory [${msm_dir}]: " - read msm_dir + read input && msm_dir=${input-$msm_dir} echo -n "New server user to be created [${msm_user}]: " - read msm_user + read input && msm_user=${input-$msm_user} echo "Complete installation with these values? [y/N]: " read answer