1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-20 20:09:07 +00:00

Fix thefuck unzip, fix #416

This commit is contained in:
mcarton 2015-12-29 18:38:58 +01:00
parent c3b1ba7637
commit a3e1cb6718

View File

@ -24,8 +24,14 @@ def _zip_file(command):
@for_app('unzip')
def match(command):
return ('-d' not in command.script
and _is_bad_zip(_zip_file(command)))
if '-d' in command.script:
return False
zip_file = _zip_file(command)
if zip_file:
return _is_bad_zip(zip_file)
else:
return False
def get_new_command(command):