1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-28 17:50:05 +08:00

add verbose env print

This commit is contained in:
2019-08-09 00:38:05 +08:00
parent 1d2a0b8780
commit 58c5872a04

View File

@@ -228,6 +228,12 @@ fn main() {
for i in 1..args.len() {
cmd.arg(&args[i]);
}
if *VERBOSE {
print_message(MessageType::DEBUG, "Environment variables:");
for (k, v) in new_env {
print_message(MessageType::DEBUG, &format!("{}={}", k, v));
}
}
run_command_and_wait(&mut cmd).unwrap_or_else(|err| {
print_message(MessageType::ERROR, &format!("Run build command failed: {}", err));
});