1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Use find -exec + so that failures will be visible in find's exit code (#16389)

Fixes #16385
This commit is contained in:
Toshio Kuratomi 2016-06-22 05:42:37 -07:00 committed by GitHub
parent 7de23a1c5b
commit 39c543e356

View file

@ -93,7 +93,7 @@ class ShellBase(object):
cmd = ['setfacl', '-m', 'u:%s:%s' % (user, mode)] cmd = ['setfacl', '-m', 'u:%s:%s' % (user, mode)]
if recursive: if recursive:
cmd = ['find', path, '-exec'] + cmd + ["'{}'", "';'"] cmd = ['find', path, '-exec'] + cmd + ["'{}'", "'+'"]
else: else:
cmd.append(path) cmd.append(path)