diff util/prosodyctl.lua @ 7462:ced4e800f42a

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Tue, 28 Jun 2016 14:54:43 +0100
parents 5e18416881bb
children bd591c5fc1bf
line wrap: on
line diff
--- a/util/prosodyctl.lua	Sun Jun 12 20:06:30 2016 +0200
+++ b/util/prosodyctl.lua	Tue Jun 28 14:54:43 2016 +0100
@@ -44,7 +44,7 @@
 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