diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-06-28 14:54:43 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-06-28 14:54:43 +0100 |
commit | f4fed64125197c6c6ce830fcd7877c69876bfb50 (patch) | |
tree | 73fd2c6aa04110f6c834f99d5de79c9510ccaf26 /util/prosodyctl.lua | |
parent | ad4206686a546cb2a7423a4ab62c5d3c9a1ea199 (diff) | |
parent | 6fc4ad3aefeab816af4b13df7d877386958a510f (diff) | |
download | prosody-f4fed64125197c6c6ce830fcd7877c69876bfb50.tar.gz prosody-f4fed64125197c6c6ce830fcd7877c69876bfb50.zip |
Merge 0.10->trunk
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r-- | util/prosodyctl.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index cde1cdd4..7c9a3c19 100644 --- a/util/prosodyctl.lua +++ b/util/prosodyctl.lua @@ -44,7 +44,7 @@ end local function getchar(n) local stty_ret = os.execute("stty raw -echo 2>/dev/null"); local ok, char; - if stty_ret == 0 then + if stty_ret == true or stty_ret == 0 then ok, char = pcall(io.read, n or 1); os.execute("stty sane"); else |