mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-26 07:51:46 -07:00
Fix "bash command not found" if pipefail is used for uncompressed dump
This commit is contained in:
parent
b5e8cdccf1
commit
eae5df27e8
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ def db_dump(module, host, user, password, db_name, target, all_databases, port,
|
|||
elif os.path.splitext(target)[-1] == '.xz':
|
||||
path = module.get_bin_path('xz', True)
|
||||
|
||||
if pipefail:
|
||||
if pipefail and path:
|
||||
cmd = 'set -o pipefail && %s | %s > %s' % (cmd, path, shlex_quote(target))
|
||||
elif path:
|
||||
cmd = '%s | %s > %s' % (cmd, path, shlex_quote(target))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue