| skipped 144 lines |
145 | 145 | | s |
146 | 146 | | } |
147 | 147 | | |
| 148 | + | // Get PATH env and join it with bin_dir |
148 | 149 | | fn get_path_env(bin_dir: &str) -> String { |
149 | | - | return [env!("PATH"), bin_dir].join(":"); |
| 150 | + | let mut path = env::var("PATH").unwrap_or_default(); |
| 151 | + | path.push_str(":"); |
| 152 | + | path.push_str(bin_dir); |
| 153 | + | path |
150 | 154 | | } |
151 | 155 | | |
152 | 156 | | fn get_help() -> String { |
| skipped 68 lines |