ksud: Fix common script may not be executed

This commit is contained in:
tiann 2023-02-21 12:54:05 +08:00
parent 849164e4de
commit 37d2914611
No known key found for this signature in database
GPG Key ID: 6D3F65FFD9559C06

View File

@ -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());