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:
parent
2e38e0ee37
commit
af1da4acf2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user