File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,24 +11,24 @@ set -e
11
11
12
12
if [[ -z ${SKIP_ENTRYPOINTS} ]]; then
13
13
# # /opt/entry/
14
- for x in $( find /opt/entry/ -type f -perm /u+x | sort ) ; do
14
+ while read -r x ; do
15
15
qecho " > execute entrypoint '${x} '"
16
16
if [[ " $x " == * .env ]]; then
17
17
source ${x}
18
18
else
19
19
${x}
20
20
fi
21
- done
21
+ done <<< $( find /opt/entry/ -type f -perm /u+x | sort)
22
22
if [[ " X${ENTRYPOINTS_DIR} " != " X" ]]; then
23
23
if [[ -d ${ENTRYPOINTS_DIR} ]]; then
24
- for x in $( find ${ENTRYPOINTS_DIR} -type f -perm /u+x | sort ) ; do
24
+ while read -r x ; do
25
25
qecho " > execute entrypoint '${x} '"
26
26
if [[ " $x " == * .env ]]; then
27
27
source ${x}
28
28
else
29
29
${x}
30
30
fi
31
- done
31
+ done <<< $( find ${ENTRYPOINTS_DIR} -type f -perm /u+x | sort)
32
32
else
33
33
echo " !!> Could not find specified ENTRYPOINTS_DIR '${ENTRYPOINTS_DIR} '"
34
34
fi
You can’t perform that action at this time.
0 commit comments