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