Files
linguist/samples/PowerShell/pwsh-shebang.ps1
kasper3 ecc62784ca Add pwsh PowerShell interpreter (#4073)
* Register pwsh as interpreter for PowerShell

* Add pwsh sample

* Remove pwsh from Shell section
2018-04-06 15:25:09 +01:00

22 lines
413 B
PowerShell

#!/usr/bin/env pwsh
# source: https://github.com/PowerShell/PowerShellStandard/blob/3436bfc162d6804dd11d1d76c4faff486b4b405d/build.ps1
param (
[Parameter(ParameterSetName="Clean")][switch]$Clean,
[Parameter(ParameterSetName="Test")][switch]$Test
)
import-module $PSScriptRoot/PowerShellStandard.psm1 -force
if ( $Clean ) {
Start-Clean
return
}
Start-Build
if ( $Test ) {
Invoke-Test
}