1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00

Bump to 3.30

This commit is contained in:
xzvf 2019-12-15 21:55:01 +01:00
parent 2581c2b00a
commit f1d01dd16c
2 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,7 @@ elif (3, 0) < version < (3, 4):
' ({}.{} detected).'.format(*version))
sys.exit(-1)
VERSION = '3.29'
VERSION = '3.30'
install_requires = ['psutil', 'colorama', 'six', 'decorator', 'pyte']
extras_require = {':python_version<"3.4"': ['pathlib2'],

View File

@ -3,10 +3,11 @@ from thefuck.shells import shell
def match(command):
file_to_run = os.path.expanduser(command.script_parts[0])
return (command.script.startswith('./')
and 'permission denied' in command.output.lower()
and os.path.exists(command.script_parts[0])
and not os.access(command.script_parts[0], os.X_OK))
and os.path.exists(file_to_run)
and not os.access(file_to_run, os.X_OK))
def get_new_command(command):