Commit 6ac4b4158bc4c3a6ea106efb33188b93e0dbd880

Authored by David Silva
1 parent e777de1a
Exists in gitlab-8.x

Change gems shebang

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
Makefile
... ... @@ -20,6 +20,9 @@ all:
20 20 bundle install $(BUNDLE_OPTS) --local --deployment
21 21 grep -rl '/this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby' vendor/bundle/ruby/gems/*/bin | xargs --no-run-if-empty sed -i -e '1 s|.*|#!/usr/bin/env ruby|'
22 22  
  23 + # Change ruby interpreter, to use rh-ruby22
  24 + grep -rl '#!/usr/bin/env ruby' vendor/bundle/ruby/gems/ | xargs --no-run-if-empty sed -i -e 's|.*|#!/opt/rh/rh-ruby22/root/usr/bin/ruby |'
  25 +
23 26 dist: $(TARBALL)
24 27  
25 28 $(TARBALL):
... ... @@ -39,6 +42,7 @@ update: clean
39 42 bundle update
40 43 bundle install $(BUNDLE_OPTS) --path vendor/bundle
41 44  
  45 +
42 46 clean:
43 47 $(RM) -r .bundle/ vendor/bundle/ $(TARBALL)
44 48  
... ...