From af1da4acf24a0474f6a8b258707134d6dd2d3e91 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Mon, 10 Nov 2014 17:09:05 +0530 Subject: [PATCH] fix cmd_requires_root logic --- bench/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/cli.py b/bench/cli.py index 50dd1c83..2c6caf58 100644 --- a/bench/cli.py +++ b/bench/cli.py @@ -35,7 +35,7 @@ def cli(): return bench() def cmd_requires_root(): - if len(sys.argv) > 3 and sys.argv[2] in ('production', 'sudoers'): + if len(sys.argv) > 2 and sys.argv[2] in ('production', 'sudoers'): return True if len(sys.argv) > 2 and sys.argv[1] in ('patch',): return True