bash nits

This commit is contained in:
Ruben Fiszel
2024-03-16 18:52:17 +01:00
parent 6f2f9b7ec2
commit 9745eec4d4
+8 -2
View File
@@ -158,7 +158,10 @@ pub async fn handle_bash_job(
let result_out_path2 = format!("{job_dir}/result2.out");
if tokio::fs::metadata(&result_out_path2).await.is_ok() {
let result = read_file_content(&result_out_path2).await?;
let result = read_file_content(&result_out_path2)
.await?
.trim()
.to_string();
return Ok(to_raw_value(&json!(result)));
}
@@ -378,7 +381,10 @@ $env:PSModulePath = \"{}:$PSModulePathBackup\"",
let result_out_path2 = format!("{job_dir}/result2.out");
if tokio::fs::metadata(&result_out_path2).await.is_ok() {
let result = read_file_content(&result_out_path2).await?;
let result = read_file_content(&result_out_path2)
.await?
.trim()
.to_string();
return Ok(to_raw_value(&json!(result)));
}