From e7232a437c60403a3e24b3cbc402b9730714a4fa Mon Sep 17 00:00:00 2001 From: Kartik Soneji Date: Mon, 20 Jul 2020 05:18:14 +0530 Subject: [PATCH] Fix for Python 2. --- thefuck/rules/npx_add_npx_to_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/rules/npx_add_npx_to_command.py b/thefuck/rules/npx_add_npx_to_command.py index 12d374b3..b3fd3733 100644 --- a/thefuck/rules/npx_add_npx_to_command.py +++ b/thefuck/rules/npx_add_npx_to_command.py @@ -20,7 +20,7 @@ def get_new_command(command): skip += 1 script_parts = command.script_parts[skip:] return [ - ' '.join(['npx', e, *script_parts]) + ' '.join(['npx', e] + script_parts) for e in get_matching_npm_executables_in_cd(command) ]