From 37d291461108524df9f600032cc9013f6ac988aa Mon Sep 17 00:00:00 2001 From: tiann Date: Tue, 21 Feb 2023 12:54:05 +0800 Subject: [PATCH] ksud: Fix common script may not be executed --- userspace/ksud/src/module.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/userspace/ksud/src/module.rs b/userspace/ksud/src/module.rs index 45c356cb..4cdb6e93 100644 --- a/userspace/ksud/src/module.rs +++ b/userspace/ksud/src/module.rs @@ -279,10 +279,6 @@ pub fn exec_common_scripts(dir: &str, wait: bool) -> Result<()> { let dir = std::fs::read_dir(&script_dir)?; for entry in dir.flatten() { let path = entry.path(); - if !path.ends_with(".sh") { - warn!("{} is not a shell script, skip", path.display()); - continue; - } if !is_executable(&path) { warn!("{} is not executable, skip", path.display());