File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1- # Copyright (c) Microsoft Corporation. All rights reserved.
1+ # Copyright (c) Microsoft Corporation. All rights reserved.
22# Licensed under the MIT License.
33Import-Module powershell- yaml - MinimumVersion ' 0.3' - ErrorAction Stop
44
@@ -1033,17 +1033,14 @@ function Install-UnitySetupInstance {
10331033 )
10341034 begin {
10351035 $currentOS = Get-OperatingSystem
1036- if ($currentOS -eq [OperatingSystem ]::Linux) {
1037- throw " Install-UnitySetupInstance has not been implemented on the Linux platform. Contributions welcomed!" ;
1038- }
1039-
1036+
10401037 if ( -not $PSBoundParameters.ContainsKey (' BasePath' ) ) {
10411038 $defaultInstallPath = switch ($currentOS ) {
10421039 ([OperatingSystem ]::Windows) {
10431040 " C:\Program Files\Unity\Hub\Editor\"
10441041 }
10451042 ([OperatingSystem ]::Linux) {
1046- throw " Install-UnitySetupInstance has not been implemented on the Linux platform. Contributions welcomed! " ;
1043+ " ~/Unity/Hub/Editor/ "
10471044 }
10481045 ([OperatingSystem ]::Mac) {
10491046 " /Applications/Unity/Hub/Editor/"
You can’t perform that action at this time.
0 commit comments