mirror of
https://github.com/serokell/deploy-rs.git
synced 2024-11-22 22:44:39 +03:00
Make lock hash clearer (at apparently no expense)
This commit is contained in:
parent
a606e123f8
commit
d7f0006df0
@ -152,7 +152,7 @@ pub async fn activation_confirmation(
|
||||
confirm_timeout: u16,
|
||||
closure: String,
|
||||
) -> Result<(), Box<dyn std::error::Error>> {
|
||||
let lock_hash = &closure[11 /* /nix/store/ */ ..];
|
||||
let lock_hash = &closure["/nix/store/".len()..];
|
||||
let lock_path = format!("{}/activating-{}", temp_path, lock_hash);
|
||||
|
||||
if let Some(parent) = Path::new(&lock_path).parent() {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user