From 87b39d1f7fdbd1e9f2e0639394d72d9a7c8ecb20 Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Thu, 30 Jan 2020 17:04:48 -0800 Subject: [PATCH] Removed Remove-StudioPathFrom from habitat/plan.ps1. We don't have backslashes in our Gemfile so I'm not sure what it was doing in the first place... AND, apparently the file wasn't there. Signed-off-by: Ryan Davis --- habitat/plan.ps1 | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/habitat/plan.ps1 b/habitat/plan.ps1 index df08ea9b8..ffae72261 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -67,7 +67,6 @@ function Invoke-Install { Write-BuildLine "** generating binstubs for $gem with precise version pins" Invoke-Expression -Command "appbundler.bat $project_root $pkg_prefix/bin $gem" } - Remove-StudioPathFrom -File $pkg_prefix/vendor/gems/inspec-$pkg_version*/Gemfile } finally { Pop-Location # forget about the build bundle config @@ -89,12 +88,3 @@ function Invoke-After { Get-ChildItem $pkg_prefix/vendor/gems -Include @("gem_make.out", "mkmf.log", "Makefile") -File -Recurse ` | Remove-Item -Force } - -function Remove-StudioPathFrom { - Param( - [Parameter(Mandatory=$true)] - [String] - $File - ) - (Get-Content $File) -replace ($env:FS_ROOT -replace "\\","/"),"" | Set-Content $File -}