2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 16:36:25 +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() return bench()
def cmd_requires_root(): 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 return True
if len(sys.argv) > 2 and sys.argv[1] in ('patch',): if len(sys.argv) > 2 and sys.argv[1] in ('patch',):
return True return True