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:
parent
c3b1ba7637
commit
a3e1cb6718
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user