mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 12:58:33 +00:00
Fix thefuck unzip
, fix #416
This commit is contained in:
parent
c3b1ba7637
commit
a3e1cb6718
@ -24,8 +24,14 @@ def _zip_file(command):
|
|||||||
|
|
||||||
@for_app('unzip')
|
@for_app('unzip')
|
||||||
def match(command):
|
def match(command):
|
||||||
return ('-d' not in command.script
|
if '-d' in command.script:
|
||||||
and _is_bad_zip(_zip_file(command)))
|
return False
|
||||||
|
|
||||||
|
zip_file = _zip_file(command)
|
||||||
|
if zip_file:
|
||||||
|
return _is_bad_zip(zip_file)
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
def get_new_command(command):
|
def get_new_command(command):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user