From ccd650dda0f87d63e8a22b705079d5b6ef35dd7c Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 2 Sep 2017 14:43:08 +0300 Subject: [PATCH] Fix invalid params order when installing PIO Core without PIP Cache --- scripts/get-platformio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get-platformio.py b/scripts/get-platformio.py index 357d47aa..6d3cbe1d 100644 --- a/scripts/get-platformio.py +++ b/scripts/get-platformio.py @@ -125,7 +125,7 @@ def install_platformio(): r = exec_python_cmd(cmd) assert r['returncode'] == 0 except AssertionError: - cmd.insert(1, "--no-cache-dir") + cmd.insert(2, "--no-cache-dir") r = exec_python_cmd(cmd) if r: print_exec_result(r)