aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authornotgne22020-12-27 10:59:32 -0700
committernotgne22020-12-27 10:59:32 -0700
commit72b04b0ae84f68a3314de32da87381097a54fbe5 (patch)
treea9b5dee80b44043a11f4a49c05153f98d3e348b3 /src/utils
parentbbc2a2d984fc5ce3da0cbb74c4482f3953fb734e (diff)
Fix log dir/file mismatch
Diffstat (limited to '')
-rw-r--r--src/utils/deploy.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/deploy.rs b/src/utils/deploy.rs
index 3aced6c..93cebee 100644
--- a/src/utils/deploy.rs
+++ b/src/utils/deploy.rs
@@ -37,7 +37,7 @@ fn build_activate_command(
}
if let Some(log_dir) = log_dir {
- self_activate_command = format!("{} --log-file {}", self_activate_command, log_dir);
+ self_activate_command = format!("{} --log-dir {}", self_activate_command, log_dir);
}
if let Some(sudo_cmd) = &sudo {
@@ -72,7 +72,7 @@ fn test_activation_command_builder() {
debug_logs,
log_dir
),
- "sudo -u test /nix/store/blah/etc/activate-rs '/blah/profiles/test' '/nix/store/blah/etc' --temp-path /tmp --confirm-timeout 30 --magic-rollback --auto-rollback --debug-logs --log-file /tmp/something.txt"
+ "sudo -u test /nix/store/blah/etc/activate-rs '/blah/profiles/test' '/nix/store/blah/etc' --temp-path /tmp --confirm-timeout 30 --magic-rollback --auto-rollback --debug-logs --log-dir /tmp/something.txt"
.to_string(),
);
}