now exporting path variable at the start of the application

This commit is contained in:
2023-03-06 21:46:12 +01:00
parent 571f93ed62
commit b9f4f86758
3 changed files with 20 additions and 9 deletions

View File

@@ -2,6 +2,8 @@ use std::{collections::HashMap, process, io::ErrorKind};
use colored::Colorize;
use crate::app::fs_util;
use super::traits::Command;
pub struct Health;
@@ -71,7 +73,9 @@ impl Health {
}
fn check_command(command: &str) -> bool {
return match process::Command::new(command).output() {
return match process::Command::new(command)
// .env("PATH", fs_util::docki_path_env())
.output() {
Ok(_) => true,
Err(e) => ErrorKind::NotFound != e.kind()
}