Skip to content

Using scp to transfer a file to Coder workspace succeeds but returns non-zero exit code #5038

Closed
@kconley-sq

Description

@kconley-sq

Version: v0.11.0+df89e2c

I noticed this behavior when a shell function I wrote to automate transferring some files to my workspace via scp was failing early since I execute set -e in that function. When I re-ran scp with -v to get more details, I saw this in the output:

...
<filename elided>                                                          100%  444     9.9KB/s   00:00
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2600, received 1916 bytes, in 0.4 seconds
Bytes per second: sent 6979.1, received 5143.1
debug1: Exit status -1

Metadata

Metadata

Assignees

Labels

cliArea: CLI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions