2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 08:30:39 +00:00

fix cmd_requires_root logic

This commit is contained in:
Pratik Vyas 2014-11-10 17:09:05 +05:30
parent 2e38e0ee37
commit af1da4acf2

View File

@ -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