diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-11-20 14:08:49 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-11-20 14:08:49 -0200 |
commit | cb541993499912adf2d55eec96a277011a96670a (patch) | |
tree | 5adffa2db873dcb8f6e6239a99ae66149fa4624f /lib | |
parent | ada53cf0229bace8e0f9f7ad191a7f77332e8c6c (diff) | |
download | hydra-cb541993499912adf2d55eec96a277011a96670a.tar.gz hydra-cb541993499912adf2d55eec96a277011a96670a.tar.bz2 |
Provision: partition information
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hydra/misc | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |