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