summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/gitano-setup.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gitano-setup.in b/bin/gitano-setup.in
index f2ef21b..fbfa58a 100644
--- a/bin/gitano-setup.in
+++ b/bin/gitano-setup.in
@@ -73,7 +73,7 @@ function ask_for(key, prompt, default)
local default_str = (cur_value == nil) and "" or " [" .. tostring(cur_value) .. "]"
sio.stdout:write((prompt or key) .. default_str .. ": ")
local new_value = sio.stdin:read("*l")
- if new_value ~= "" then
+ if new_value and new_value ~= "" then
cur_value = new_value
end
end