mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Fix capitalization of GitHub in dev module's name
This commit is contained in:
1 parent
c8891bb5a0
commit
d3c6d274ed
2 files changed
+4
-4
No files matched your search
@@ -0,0 +1,58 @@
|
||||
function Start-DevPSGitHub
|
||||
{
|
||||
param(
|
||||
[switch]$ZapDisable,
|
||||
[string[]]$ArgumentList = '',
|
||||
[switch]$LoadProfile,
|
||||
[string]$binDir = "$PSScriptRoot\binFull",
|
||||
[switch]$NoNewWindow
|
||||
)
|
||||
|
||||
try
|
||||
{
|
||||
if ($LoadProfile -eq $false)
|
||||
{
|
||||
$ArgumentList = @('-noprofile') + $ArgumentList
|
||||
}
|
||||
|
||||
$env:DEVPATH = $binDir
|
||||
if ($ZapDisable)
|
||||
{
|
||||
$env:COMPLUS_ZapDisable = 1
|
||||
}
|
||||
|
||||
if (!(Test-Path $binDir\powershell.exe.config))
|
||||
{
|
||||
$configContents = @"
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<runtime>
|
||||
<developmentMode developerInstallation="true"/>
|
||||
</runtime>
|
||||
</configuration>
|
||||
"@
|
||||
$configContents | Out-File -Encoding Ascii $binDir\powershell.exe.config
|
||||
}
|
||||
|
||||
# splatting for the win
|
||||
$startProcessArgs = @{
|
||||
FilePath = "$binDir\powershell.exe"
|
||||
ArgumentList = "$ArgumentList"
|
||||
}
|
||||
|
||||
if ($NoNewWindow) {
|
||||
$startProcessArgs.NoNewWindow = $true
|
||||
$startProcessArgs.Wait = $true
|
||||
}
|
||||
|
||||
Start-Process @startProcessArgs
|
||||
}
|
||||
finally
|
||||
{
|
||||
ri env:DEVPATH
|
||||
if ($ZapDisable)
|
||||
{
|
||||
ri env:COMPLUS_ZapDisable
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user