aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-06-28 14:54:43 +0100
committerMatthew Wild <mwild1@gmail.com>2016-06-28 14:54:43 +0100
commit5d19b7d42da48ad8fba532642af3cd5eb87798b1 (patch)
tree73fd2c6aa04110f6c834f99d5de79c9510ccaf26 /util/prosodyctl.lua
parent5d9768626dd51c4d979c4c0878b707a8b3dbc0fa (diff)
parent8afacb5d92d6098f6eb85bbc32aff5632983bd5d (diff)
downloadprosody-5d19b7d42da48ad8fba532642af3cd5eb87798b1.tar.gz
prosody-5d19b7d42da48ad8fba532642af3cd5eb87798b1.zip
Merge 0.10->trunk
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r--util/prosodyctl.lua2
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