Skip to content

Commit

Permalink
ShellcmdLrms: Ensure capturing STDERR and STDOUT to the same file wor…
Browse files Browse the repository at this point in the history
…ks as documented.
  • Loading branch information
riccardomurri committed Aug 31, 2017
1 parent 4ba7285 commit 9dc2481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc3libs/backends/shellcmd.py
Expand Up @@ -1476,7 +1476,7 @@ def _setup_redirection(self, app):
stdout_dir = os.path.dirname(app.stdout)
if stdout_dir:
self.transport.makedirs(posixpath.join(execdir, stdout_dir))
if app.join:
if app.join or (app.stderr and app.stderr == app.stdout):
redirections.append("2>&1")
else:
if app.stderr is not None:
Expand Down

0 comments on commit 9dc2481

Please sign in to comment.