diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2013-11-17 07:37:51 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2013-11-17 07:37:51 +0000 |
commit | 499505b70acc410cbf41ce6bf37416738851f49f (patch) | |
tree | 9a771412d962e779ac5d2a3fae69f0f5cabeb78d | |
parent | 4629cfff316357fcc1ac8a1a74e272f3a60bcb0a (diff) | |
download | gitano-499505b70acc410cbf41ce6bf37416738851f49f.tar.gz |
Cope with nil back from sio:read
-rw-r--r-- | bin/gitano-setup.in | 2 |
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 |