summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-11-20 14:08:49 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-11-20 14:08:49 -0200
commitcb541993499912adf2d55eec96a277011a96670a (patch)
tree5adffa2db873dcb8f6e6239a99ae66149fa4624f /lib
parentada53cf0229bace8e0f9f7ad191a7f77332e8c6c (diff)
downloadhydra-cb541993499912adf2d55eec96a277011a96670a.tar.gz
hydra-cb541993499912adf2d55eec96a277011a96670a.tar.bz2
Provision: partition information
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/misc6
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
}