You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to convert an exec resource from multiple invocations of test -f to use the built-in creates option, but it doesn't work as expected, it will not execute unless none of the files are present.
Discussing on Slack, another option that preserves backwards compatibility would be to take a multi-dimensional array:
[
[all of these files, 2, 3, 4],
[or all of these files, 5, 6, 7],
[or even all of these],
]
yakatz
changed the title
Change behavior of execcreates to check for all files instead of at least one
Allow execcreates to check for all files instead of at least one
Nov 22, 2023
Describe the Bug
I tried to convert an
exec
resource from multiple invocations oftest -f
to use the built-increates
option, but it doesn't work as expected, it will not execute unless none of the files are present.Original:
Expected equivalent:
Debug output if both exist:
Debug output if the first file is missing and the second one exists:
Debug output if neither file exists (debug run without
notify httpd
):Expected Behavior
I would expect the command to be executed if any of the files listed in
creates
are missing.Environment
The text was updated successfully, but these errors were encountered: