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
@@ -20,6 +20,9 @@ all: @@ -20,6 +20,9 @@ all:
20 bundle install $(BUNDLE_OPTS) --local --deployment 20 bundle install $(BUNDLE_OPTS) --local --deployment
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|' 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 dist: $(TARBALL) 26 dist: $(TARBALL)
24 27
25 $(TARBALL): 28 $(TARBALL):
@@ -39,6 +42,7 @@ update: clean @@ -39,6 +42,7 @@ update: clean
39 bundle update 42 bundle update
40 bundle install $(BUNDLE_OPTS) --path vendor/bundle 43 bundle install $(BUNDLE_OPTS) --path vendor/bundle
41 44
  45 +
42 clean: 46 clean:
43 $(RM) -r .bundle/ vendor/bundle/ $(TARBALL) 47 $(RM) -r .bundle/ vendor/bundle/ $(TARBALL)
44 48