Commit a953cddd by Mislav Marohnić

Merge pull request #491 from marc/master

GNU sed compatibility
parents 9cd77be1 eed9b53d
...@@ -519,7 +519,7 @@ install_jruby_launcher() { ...@@ -519,7 +519,7 @@ install_jruby_launcher() {
fix_jruby_shebangs() { fix_jruby_shebangs() {
for file in "${PREFIX_PATH}/bin"/*; do for file in "${PREFIX_PATH}/bin"/*; do
if [ "$(head -c 20 "$file")" = "#!/usr/bin/env jruby" ]; then 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 rm "$file".bak
fi fi
done done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment