Skip to content

Commit

Permalink
Merge pull request rails#52713 from bopm/patch-1
Browse files Browse the repository at this point in the history
Fixes shellcheck SC2144, replace glob with find.
  • Loading branch information
rafaelfranca authored Aug 26, 2024
2 parents 534b4ab + c10edc8 commit 9558f00
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash -e

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

<% unless skip_active_record? -%>
Expand Down

0 comments on commit 9558f00

Please sign in to comment.