File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 151
151
# password authentication, and is included here, so you may add additional
152
152
# parameters without losing the default configuration.
153
153
options : ' -o PasswordAuthentication=no'
154
+ # This string is valid for Bash shell. Override in case you need something different. See https://github.com/drush-ops/drush/issues/3816.
155
+ pipefail : ' set -o pipefail; '
154
156
155
157
notify :
156
158
# Notify when command takes more than 30 seconds.
Original file line number Diff line number Diff line change @@ -162,7 +162,9 @@ public function dump()
162
162
$ cmd = $ this ->dumpCmd ($ table_selection );
163
163
// Gzip the output from dump command(s) if requested.
164
164
if ($ this ->getOption ('gzip ' )) {
165
- $ cmd .= ' | gzip -f ' ;
165
+ // See https://github.com/drush-ops/drush/issues/3816.
166
+ $ pipefail = $ this ->getConfig ()->get ('ssh.pipefail ' , 'set -o pipefail; ' );
167
+ $ cmd = "$ pipefail $ cmd | gzip -f " ;
166
168
$ file_suffix .= '.gz ' ;
167
169
}
168
170
if ($ file ) {
You can’t perform that action at this time.
0 commit comments