From cb541993499912adf2d55eec96a277011a96670a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 20 Nov 2010 14:08:49 -0200 Subject: Provision: partition information --- lib/hydra/misc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/hydra/misc') diff --git a/lib/hydra/misc b/lib/hydra/misc index 26d03ea..77f717d 100644 --- a/lib/hydra/misc +++ b/lib/hydra/misc @@ -131,7 +131,7 @@ function hydra_usage_hydractl { } # Read a parameter from user -function hydra_read { +function hydra_user_input { local input param="$1" default="$2" @@ -139,8 +139,8 @@ function hydra_read { read -rep "$* (defaults to $default): " input if [ -z "$input" ]; then - declare $param=$default + export $param=$default else - declare $param=$input + export $param=$input fi } -- cgit v1.2.3