Skip to content

Commit e45583f

Browse files
committed
Replace loop with tuned find command
1 parent 76ce57f commit e45583f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ RUN \
3232
echo "######################################################" && \
3333
echo "### Import trusted certs before doing anything else ###" && \
3434
echo "######################################################" && \
35-
for FILE in `find /opt/certs \( -name "*.pem" -or -name "*.crt" \)`; \
36-
do cat $FILE >> /etc/pki/tls/certs/ca-bundle.crt ; done && \
35+
find /opt/certs -type f \( -name "*.pem" -o -name "*.crt" \) -exec cat {} + >> /etc/pki/tls/certs/ca-bundle.crt && \
3736
echo "###############################################" && \
3837
echo "### Install ###" && \
3938
echo "### -> Basics ###" && \

0 commit comments

Comments
 (0)