Skip to content

Commit

Permalink
Improve checking
Browse files Browse the repository at this point in the history
  • Loading branch information
mlm-games authored Sep 14, 2024
1 parent 4b0349b commit bc8b87d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/integrate-no-kprobe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bc8b87d

Please sign in to comment.