summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2013-11-17 07:37:51 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2013-11-17 07:37:51 +0000
commit499505b70acc410cbf41ce6bf37416738851f49f (patch)
tree9a771412d962e779ac5d2a3fae69f0f5cabeb78d
parent4629cfff316357fcc1ac8a1a74e272f3a60bcb0a (diff)
downloadgitano-499505b70acc410cbf41ce6bf37416738851f49f.tar.gz
Cope with nil back from sio:read
-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