diff --git a/scripts/integrate-no-kprobe.py b/scripts/integrate-no-kprobe.py index 4528ef03..26743b59 100644 --- a/scripts/integrate-no-kprobe.py +++ b/scripts/integrate-no-kprobe.py @@ -12,7 +12,7 @@ def modify_ksu_config(defconfig, enable=True): defconfig_path = None for directory in directories: for filename in os.listdir(directory): - if filename.endswith("_defconfig") and filename == defconfig: + if filename.endswith("_defconfig"): defconfig_path = os.path.join(directory, filename) break if defconfig_path: @@ -232,4 +232,4 @@ def main(): process_kernel_source(file_paths, enable_ksu=not args.disable_ksu, disable_external_mods=args.disable_external_mods) if __name__ == '__main__': - main() \ No newline at end of file + main()