Prepend flag for scp support
This commit is contained in:
parent
2209a84c9d
commit
8e8632ddab
1 changed files with 2 additions and 1 deletions
|
|
@ -130,7 +130,8 @@ func (a *App) SSH(ctx context.Context, sshArgs []string, opts sshOptions) (err e
|
|||
}
|
||||
|
||||
liveshareSSHOptions.UserPublicKeyFile = keyPair.PublicKeyPath
|
||||
args = append(args, "-i", keyPair.PrivateKeyPath)
|
||||
// For cp any flags need to come first, so prepend this one
|
||||
args = append([]string{"-i", keyPair.PrivateKeyPath}, args...)
|
||||
}
|
||||
|
||||
codespace, err := getOrChooseCodespace(ctx, a.apiClient, opts.codespace)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue