mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-19 04:21:14 +00:00
#N/A: Disable port_already_in_use
on systems without lsof
This commit is contained in:
parent
a1f115eb19
commit
a3eb124033
@ -1,8 +1,10 @@
|
||||
import re
|
||||
from subprocess import Popen, PIPE
|
||||
from thefuck.utils import memoize
|
||||
from thefuck.utils import memoize, which
|
||||
from thefuck.shells import shell
|
||||
|
||||
enabled_by_default = bool(which('lsof'))
|
||||
|
||||
patterns = [r"bind on address \('.*', (?P<port>\d+)\)",
|
||||
r'Unable to bind [^ ]*:(?P<port>\d+)',
|
||||
r"can't listen on port (?P<port>\d+)",
|
||||
|
Loading…
x
Reference in New Issue
Block a user