Skip to content

Commit

Permalink
Merge pull request #2429 from headius/tr_lc_all
Browse files Browse the repository at this point in the history
Clear LC_ALL for tr call
  • Loading branch information
mislav committed Jul 31, 2024
2 parents 072022f + 89eb562 commit 6b90d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ install_jruby_launcher() {

fix_jruby_shebangs() {
for file in "${PREFIX_PATH}/bin"/*; do
if [ "$(head -c 20 "$file" | LC_CTYPE=C tr -d '\0')" = "#!/usr/bin/env jruby" ]; then
if [ "$(head -c 20 "$file" | LC_CTYPE=C LC_ALL='' tr -d '\0')" = "#!/usr/bin/env jruby" ]; then
sed -i.bak "1 s:.*:#\!${PREFIX_PATH}\/bin\/jruby:" "$file"
rm "$file".bak
fi
Expand Down

0 comments on commit 6b90d69

Please sign in to comment.