代码拉取完成,页面将自动刷新
同步操作将从 chuanjiao10/kasini3000 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#建议保存编码为:bom头 + utf8
if ($global:已经setpwsh -eq $true)
{
exit
}
$global:已经setpwsh = $true
if ( ($IsWindows -eq $True) -or ($PSVersionTable.psversion.major -lt 6) ) #win
{
$private:ps7pvw = 'c:\Program Files\PowerShell\7-preview\pwsh.exe'
$private:ps7w = 'c:\Program Files\PowerShell\7\pwsh.exe'
$private:ps6w = 'c:\Program Files\PowerShell\6\pwsh.exe'
$private:ps51w = 'C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe'
if (Test-Path -LiteralPath $private:ps7w)
{
[string]$global:p_w_s_h_7 = $private:ps7w
}
elseif (Test-Path -LiteralPath $private:ps7pvw)
{
[string]$global:p_w_s_h_7 = $private:ps7pvw
}
if (Test-Path -LiteralPath $private:ps6w)
{
[string]$global:p_w_s_h_6 = $private:ps6w
}
if (Test-Path -LiteralPath $private:ps7w)
{
[string]$global:p_w_s_h = $private:ps7w
}
elseif (Test-Path -LiteralPath $private:ps7pvw)
{
[string]$global:p_w_s_h = $private:ps7pvw
}
elseif (Test-Path -LiteralPath $private:ps6w)
{
[string]$global:p_w_s_h = $private:ps6w
}
else
{
[string]$global:p_w_s_h = $private:ps51w
}
}
if ($IsLinux -eq $True)
{
$private:ps7pvl = '/opt/microsoft/powershell/7-preview/pwsh'
$private:ps7l = '/opt/microsoft/powershell/7/pwsh'
$private:ps6l = '/opt/microsoft/powershell/6/pwsh'
if (Test-Path -LiteralPath $private:ps7l)
{
[string]$global:p_w_s_h_7 = $private:ps7l
}
elseif (Test-Path -LiteralPath $private:ps7pvl)
{
[string]$global:p_w_s_h_7 = $private:ps7pvl
}
if (Test-Path -LiteralPath $private:ps6l)
{
[string]$global:p_w_s_h_6 = $private:ps6l
}
if (Test-Path -LiteralPath $private:ps7l)
{
[string]$global:p_w_s_h = $private:ps7l
}
elseif (Test-Path -LiteralPath $private:ps7pvl)
{
[string]$global:p_w_s_h = $private:ps7pvl
}
else
{
[string]$global:p_w_s_h = $private:ps6l
}
}
Write-Verbose [string]$global:p_w_s_h
Write-Verbose [string]$global:p_w_s_h_7
Write-Verbose [string]$global:p_w_s_h_6
exit 0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。