mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Use find -exec + so that failures will be visible in find's exit code (#16389)
Fixes #16385
This commit is contained in:
@@ -93,7 +93,7 @@ class ShellBase(object):
|
||||
|
||||
cmd = ['setfacl', '-m', 'u:%s:%s' % (user, mode)]
|
||||
if recursive:
|
||||
cmd = ['find', path, '-exec'] + cmd + ["'{}'", "';'"]
|
||||
cmd = ['find', path, '-exec'] + cmd + ["'{}'", "'+'"]
|
||||
else:
|
||||
cmd.append(path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user