Fix sudo after npm errors

This commit is contained in:
nvbn
2015-04-08 19:16:15 +02:00
parent b1c21d5a08
commit 173a4300b4
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
def match(command):
return 'permission denied' in command.stderr.lower()
return ('permission denied' in command.stderr.lower()
or 'EACCES' in command.stderr)
def get_new_command(command):