Skip to content

Commit f1d0b82

Browse files
authored
Update install_executorch.py
1 parent 051387e commit f1d0b82

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

install_executorch.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ def check_folder(folder: str, file: str) -> bool:
121121
logger.warning("Some required submodules are missing. Updating submodules...")
122122
try:
123123
subprocess.check_call(["git", "submodule", "sync", "--recursive"])
124-
subprocess.check_call(["git", "submodule", "update", "--init", "--recursive"])
124+
subprocess.check_call(
125+
["git", "submodule", "update", "--init", "--recursive"]
126+
)
125127
except subprocess.CalledProcessError as e:
126128
logger.error(f"Error updating submodules: {e}")
127129
exit(1)
@@ -130,7 +132,9 @@ def check_folder(folder: str, file: str) -> bool:
130132
for path, file in missing_submodules.items():
131133
if not check_folder(path, file):
132134
logger.error(f"{file} not found in {path}.")
133-
logger.error("Submodule update failed. Please run `git submodule update --init --recursive` manually.")
135+
logger.error(
136+
"Submodule update failed. Please run `git submodule update --init --recursive` manually."
137+
)
134138
exit(1)
135139
logger.info("All required submodules are present.")
136140

0 commit comments

Comments
 (0)