Skip to content
Snippets Groups Projects
Commit f5098060 authored by Vladimir Iakovlev's avatar Vladimir Iakovlev
Browse files

Merge pull request #63 from gegenschall/master

Add option to bower_install to be able to install packages as root
parents 631d0370 86535b9d
No related branches found
No related tags found
No related merge requests found
......@@ -11,11 +11,20 @@ class Command(BaseBowerCommand):
dest='force',
default=False,
help='Force installation of latest package version on conflict'),
make_option('-R', '--allow-root',
action='store_true',
dest='allow-root',
default=False,
help='Allow installing bower packages even when user executing this script is root'),
)
def handle(self, *args, **options):
super(Command, self).handle(*args, **options)
if options.get('force') == True:
if options.get('force'):
args = args + ("-F", )
if options.get('allow-root'):
args = args + ("--allow-root", )
self._install(args)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment