Skip to content

Commit 2c334ad

Browse files
Remove the excluded_files
1 parent 215a768 commit 2c334ad

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

shared/templates/file_owner/tests/incorrect_owner.fail.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,13 @@ useradd testuser_123
88
{{% set FIND_RECURSE_ARGS="-maxdepth 1" %}}
99
{{%- endif %}}
1010

11-
{{%- if EXCLUDED_FILES %}}
12-
{{% set EXCLUDED_FILES_ARGS="! -name '" + EXCLUDED_FILES|join("' ! -name '") + "'" %}}
13-
{{%- else %}}
14-
{{% set EXCLUDED_FILES_ARGS="" %}}
15-
{{%- endif %}}
16-
1711
{{% for path in FILEPATH %}}
1812
{{% if path.endswith("/") %}}
1913
if [ ! -d {{{ path }}} ]; then
2014
mkdir -p {{{ path }}}
2115
fi
2216
{{% if FILE_REGEX %}}
23-
find -L {{{ path }}} {{{ FIND_RECURSE_ARGS }}} {{{ EXCLUDED_FILES_ARGS }}} -type f -regex '{{{ FILE_REGEX[loop.index0] }}}' -exec chown testuser_123 {} \;
17+
find -L {{{ path }}} {{{ FIND_RECURSE_ARGS }}} -type f -regex '{{{ FILE_REGEX[loop.index0] }}}' -exec chown testuser_123 {} \;
2418
{{% elif RECURSIVE %}}
2519
find -L {{{ path }}} -type d -exec chown testuser_123 {} \;
2620
{{% else %}}

0 commit comments

Comments
 (0)