mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-10-25 15:20:38 +02:00
Run sed without the -E flag.
GNU sed version 4.1.5 on CentOS 5.8 does not support the -E flag: $ sed -E sed: invalid option -- E
This commit is contained in:
parent
9cd77be141
commit
eed9b53d35
1 changed files with 1 additions and 1 deletions
|
|
@ -519,7 +519,7 @@ install_jruby_launcher() {
|
|||
fix_jruby_shebangs() {
|
||||
for file in "${PREFIX_PATH}/bin"/*; do
|
||||
if [ "$(head -c 20 "$file")" = "#!/usr/bin/env jruby" ]; then
|
||||
sed -i.bak -E "1s:.+:#\!${PREFIX_PATH}/bin/jruby:" "$file"
|
||||
sed -i.bak "1 s:.*:#\!${PREFIX_PATH}\/bin\/jruby:" "$file"
|
||||
rm "$file".bak
|
||||
fi
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue