aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authornotgne22020-10-29 12:35:07 -0700
committernotgne22020-10-29 12:35:07 -0700
commitd7f0006df0e3c14a9387f5bd3e3e3acd0b39fda8 (patch)
treec6c906edaa5b3f0a1046ec2976c9f10cfa1b4347 /src/utils
parenta606e123f890e03775cfd0d7dc908bb35dc95c96 (diff)
Make lock hash clearer (at apparently no expense)
Diffstat (limited to '')
-rw-r--r--src/utils/deploy.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/deploy.rs b/src/utils/deploy.rs
index 59217df..8ed7d8c 100644
--- a/src/utils/deploy.rs
+++ b/src/utils/deploy.rs
@@ -140,7 +140,7 @@ pub async fn deploy_profile(
ssh_confirm_command = ssh_confirm_command.arg(ssh_opt);
}
- let lock_hash = &deploy_data.profile.profile_settings.path[11 /* /nix/store/ */ ..];
+ let lock_hash = &deploy_data.profile.profile_settings.path["/nix/store/".len()..];
let lock_path = format!("{}/activating-{}", temp_path, lock_hash);
let mut confirm_command = format!("rm {}", lock_path);