diff --git a/get_CoreFiles.py b/get_CoreFiles.py index d27d57b..1e8c025 100644 --- a/get_CoreFiles.py +++ b/get_CoreFiles.py @@ -11,8 +11,9 @@ print ("Cloning Mobiflight-Firmware repo ... ") env.Execute(f'git clone --depth 1 --filter=blob:none --sparse --branch {CORESOURCE_TAG} "{CORESOURCE}" "{CORESOURCE_DIR}"') env.Execute(f'git --work-tree="{CORESOURCE_DIR}" --git-dir="{CORESOURCE_DIR}/.git" sparse-checkout set _Boards src') - if os.path.isfile(CORESOURCE_DIR + "/platformio.ini"): - os.remove(CORESOURCE_DIR + "/platformio.ini") else: print ("Checking for Mobiflight-Firmware repo updates ... ") env.Execute(f'git --work-tree="{CORESOURCE_DIR}" --git-dir="{CORESOURCE_DIR}/.git" pull origin {CORESOURCE_TAG} --depth 100') + +if os.path.isfile(CORESOURCE_DIR + "/platformio.ini"): + os.remove(CORESOURCE_DIR + "/platformio.ini")