chore: refine env command (#1193)

This commit is contained in:
Tim
2025-08-18 18:16:16 +08:00
committed by GitHub
parent 2f8261f82b
commit 3260c0c3ff
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -293,13 +293,13 @@ class Env(Generic[ASpecificEnvConf]):
return p.parts[0]
return None
chmod_cmd = f"chmod -R 777 $(find {workspace_path} -mindepth 1 -maxdepth 1"
find_cmd = f"find {workspace_path} -mindepth 1 -maxdepth 1"
for name in [
_get_path_stem(T("scenarios.data_science.share:scen.cache_path").r()),
_get_path_stem(T("scenarios.data_science.share:scen.input_path").r()),
]:
chmod_cmd += f" ! -name {name}"
chmod_cmd += ")"
find_cmd += f" ! -name {name}"
chmod_cmd = f"{find_cmd} -exec chmod -R 777 {{}} +"
return chmod_cmd
if self.conf.running_timeout_period is None: