Skip to content

Commit 9558f00

Browse files
authored
Merge pull request rails#52713 from bopm/patch-1
Fixes shellcheck SC2144, replace glob with find.
2 parents 534b4ab + c10edc8 commit 9558f00

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

railties/lib/rails/generators/rails/app/templates/docker-entrypoint.tt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash -e
22

33
# Enable jemalloc for reduced memory usage and latency.
4-
if [ -z "${LD_PRELOAD+x}" ] && [ -f /usr/lib/*/libjemalloc.so.2 ]; then
5-
export LD_PRELOAD="$(echo /usr/lib/*/libjemalloc.so.2)"
4+
if [ -z "${LD_PRELOAD+x}" ]; then
5+
LD_PRELOAD=$(find /usr/lib -name libjemalloc.so.2 -print -quit)
6+
export LD_PRELOAD
67
fi
78

89
<% unless skip_active_record? -%>

0 commit comments

Comments
 (0)