Commit 35a211b0c5
Unregistered key
Layout: unified · split
src/commands.rs +5 −1
| @@ -936,7 +936,11 @@ fn iamb_upload(desc: CommandDescription, ctx: &mut ProgContext) -> ProgResult { | ||
| 936 | 936 | return Result::Err(CommandError::InvalidArgument); |
| 937 | 937 | } |
| 938 | 938 | |
| 939 | let sact = SendAction::Upload(args.remove(0), None); | |
| 939 | let path = args.remove(0); | |
| 940 | let expanded_path = | |
| 941 | shellexpand::full(&path).map_err(|e| CommandError::ParseFailed(e.to_string()))?; | |
| 942 | ||
| 943 | let sact = SendAction::Upload(expanded_path.into_owned(), None); | |
| 940 | 944 | let iact = IambAction::from(sact); |
| 941 | 945 | let step = CommandStep::Continue(iact.into(), ctx.context.clone()); |
| 942 | 946 | |