From 9ced948f0b858d12a48c40087048a7f7bc1cb883 Mon Sep 17 00:00:00 2001 From: Nick Schwaderer Date: Fri, 18 Oct 2024 13:45:11 +0100 Subject: [PATCH] Find/replace wherever the Gemfile is --- app/models/shipit/deploy_spec/bundler_discovery.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/shipit/deploy_spec/bundler_discovery.rb b/app/models/shipit/deploy_spec/bundler_discovery.rb index cbd59fe66..6093a709e 100644 --- a/app/models/shipit/deploy_spec/bundler_discovery.rb +++ b/app/models/shipit/deploy_spec/bundler_discovery.rb @@ -36,7 +36,7 @@ def remove_ruby_version_from_gemfile # OSX is nitpicky about the -i. %q(/usr/bin/sed -i '' '/^ruby\s/d' Gemfile) else - %q(sed -i '/^ruby\s/d' Gemfile) + %q(find . -name Gemfile -type f -exec sed -i '/^ruby\s/d' {} +) end end