From bc8b87de78fedd3413bd5a1773ea98262c361329 Mon Sep 17 00:00:00 2001 From: ragebreaker <125530737+mlm-games@users.noreply.github.com> Date: Sat, 14 Sep 2024 10:23:00 +0530 Subject: [PATCH] Improve checking --- scripts/integrate-no-kprobe.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/integrate-no-kprobe.py b/scripts/integrate-no-kprobe.py index 26743b5..8cb8faa 100644 --- a/scripts/integrate-no-kprobe.py +++ b/scripts/integrate-no-kprobe.py @@ -13,8 +13,9 @@ def modify_ksu_config(defconfig, enable=True): for directory in directories: for filename in os.listdir(directory): if filename.endswith("_defconfig"): - defconfig_path = os.path.join(directory, filename) - break + if os.path.exists(os.path.join(directory, filename)) + defconfig_path = os.path.join(directory, filename) + break if defconfig_path: break