You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: dist/unity-install.ps1
+23-26
Original file line number
Diff line number
Diff line change
@@ -330,41 +330,38 @@ if ([String]::IsNullOrEmpty($envUnityHubPath)) {
330
330
Write-Host"UnityHub path set to: `"$hubPath`""
331
331
}
332
332
333
-
functionRun-As {
333
+
functionRun {
334
334
param(
335
335
[string]$command,
336
336
[string]$arguments
337
337
)
338
338
339
-
if ((New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Copy file name to clipboardExpand all lines: src/unity-install.ps1
+23-26
Original file line number
Diff line number
Diff line change
@@ -330,41 +330,38 @@ if ([String]::IsNullOrEmpty($envUnityHubPath)) {
330
330
Write-Host"UnityHub path set to: `"$hubPath`""
331
331
}
332
332
333
-
functionRun-As {
333
+
functionRun {
334
334
param(
335
335
[string]$command,
336
336
[string]$arguments
337
337
)
338
338
339
-
if ((New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
0 commit comments