diff options
author | notgne2 | 2020-10-01 20:24:09 -0700 |
---|---|---|
committer | notgne2 | 2020-10-01 20:24:09 -0700 |
commit | 05803e0ebaf417d9ba40645b6548a48bf51f9213 (patch) | |
tree | 17af19223dd8b207e328ae1732fe0bf3078df5f6 /src/utils/deploy.rs | |
parent | e14acaf2bdc14bbdc30f3d558b62f64fe33ff5f9 (diff) |
Handle more command exits correctly
Diffstat (limited to 'src/utils/deploy.rs')
-rw-r--r-- | src/utils/deploy.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils/deploy.rs b/src/utils/deploy.rs index d46f2db..f1f4210 100644 --- a/src/utils/deploy.rs +++ b/src/utils/deploy.rs @@ -98,7 +98,11 @@ pub async fn deploy_profile( ssh_command = ssh_command.arg(ssh_opt); } - ssh_command.arg(self_activate_command).spawn()?.await?; + let ssh_exit_status = ssh_command.arg(self_activate_command).status().await?; + + if !ssh_exit_status.success() { + good_panic!("Activation over SSH failed"); + } Ok(()) } |