summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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
}