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.
2
2
# Licensed under the MIT License.
3
3
Import-Module powershell- yaml - MinimumVersion ' 0.3' - ErrorAction Stop
4
4
@@ -1033,17 +1033,14 @@ function Install-UnitySetupInstance {
1033
1033
)
1034
1034
begin {
1035
1035
$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
+
1040
1037
if ( -not $PSBoundParameters.ContainsKey (' BasePath' ) ) {
1041
1038
$defaultInstallPath = switch ($currentOS ) {
1042
1039
([OperatingSystem ]::Windows) {
1043
1040
" C:\Program Files\Unity\Hub\Editor\"
1044
1041
}
1045
1042
([OperatingSystem ]::Linux) {
1046
- throw " Install-UnitySetupInstance has not been implemented on the Linux platform. Contributions welcomed! " ;
1043
+ " ~/Unity/Hub/Editor/ "
1047
1044
}
1048
1045
([OperatingSystem ]::Mac) {
1049
1046
" /Applications/Unity/Hub/Editor/"
You can’t perform that action at this time.
0 commit comments