Skip to content

Commit b909d1b

Browse files
committed
Support Install-UnitySetupInstance for Linux
1 parent ca98a26 commit b909d1b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Microsoft Corporation. All rights reserved.
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33
Import-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/"

0 commit comments

Comments
 (0)