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)