File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
shared/templates/file_owner/tests Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,13 @@ useradd testuser_123
8
8
{{% set FIND_RECURSE_ARGS=" -maxdepth 1" %}}
9
9
{{%- endif %}}
10
10
11
- {{%- if EXCLUDED_FILES %}}
12
- {{% set EXCLUDED_FILES_ARGS=" ! -name '" + EXCLUDED_FILES| join(" ' ! -name '" ) + " '" %}}
13
- {{%- else %}}
14
- {{% set EXCLUDED_FILES_ARGS=" " %}}
15
- {{%- endif %}}
16
-
17
11
{{% for path in FILEPATH %}}
18
12
{{% if path.endswith(" /" ) %}}
19
13
if [ ! -d {{{ path }}} ]; then
20
14
mkdir -p {{{ path }}}
21
15
fi
22
16
{{% 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 {} \;
24
18
{{% elif RECURSIVE %}}
25
19
find -L {{{ path }}} -type d -exec chown testuser_123 {} \;
26
20
{{% else %}}
You can’t perform that action at this time.
0 commit comments