Skip to content

Commit

Permalink
Merge pull request #2017 from thomaslevesque/make-build-ps1-executabl…
Browse files Browse the repository at this point in the history
…e-on-linux

Make build.ps1 executable on Linux
  • Loading branch information
blairconrad committed May 2, 2024
2 parents d43aff0 + cfc1b7e commit d486f3c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions build.ps1
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
try {
Push-Location $PSScriptRoot
dotnet run --project "./tools/FakeItEasy.Build" -- $args
if ($LASTEXITCODE) { Throw "Build failed with exit code $LASTEXITCODE." }
}
finally {
Pop-Location
}
#!/usr/bin/env pwsh
try {
Push-Location $PSScriptRoot
dotnet run --project "./tools/FakeItEasy.Build" -- $args
if ($LASTEXITCODE) { Throw "Build failed with exit code $LASTEXITCODE." }
}
finally {
Pop-Location
}

0 comments on commit d486f3c

Please sign in to comment.