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:
Marc Bellingrath 2014-01-17 10:06:38 -05:00
parent 9cd77be141
commit eed9b53d35

View file

@ -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