Skip to content

Commit 084d360

Browse files
committed
ci(override_script): Added verification to process only valid directories
1 parent f2c06c9 commit 084d360

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/ci/override_managed_component.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env python
22
#
3-
# SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
3+
# SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
44
# SPDX-License-Identifier: Apache-2.0
55

66
import sys
77
import argparse
88
from pathlib import Path
99
from glob import glob
10+
from os import path
1011
from idf_component_tools.manifest import ManifestManager
1112

1213

@@ -47,6 +48,11 @@ def override_with_local_component_all(component, local_path, apps):
4748

4849
# Go through all collected apps
4950
for app in apps_with_glob:
51+
# Verify that the app is a valid directory
52+
if not path.isdir(app):
53+
print(f"[Warning] Skipping app '{app}' as it is not a valid directory.")
54+
continue # Skip to the next app
55+
# Process the app if it's a directory
5056
try:
5157
override_with_local_component(component, local_path, app)
5258
except:

0 commit comments

Comments
 (0)