Update src/model/platform-setup/setup-mac.ts
Co-authored-by: Webber Takken <webber.nl@gmail.com>pull/326/head
							parent
							
								
									d3e97a24a8
								
							
						
					
					
						commit
						d23e37b905
					
				|  | @ -21,8 +21,8 @@ class SetupMac { | ||||||
|   private static async installUnityHub(silent = false) { |   private static async installUnityHub(silent = false) { | ||||||
|     const command = 'brew install unity-hub'; |     const command = 'brew install unity-hub'; | ||||||
|     if (!fs.existsSync(this.unityHubPath)) { |     if (!fs.existsSync(this.unityHubPath)) { | ||||||
|       //Ignoring return code because the log seems to overflow the internal buffer which triggers
 |       // Ignoring return code because the log seems to overflow the internal buffer which triggers
 | ||||||
|       //a false error
 |       // a false error
 | ||||||
|       const errorCode = await exec(command, undefined, { silent, ignoreReturnCode: true }); |       const errorCode = await exec(command, undefined, { silent, ignoreReturnCode: true }); | ||||||
|       if (errorCode) { |       if (errorCode) { | ||||||
|         throw new Error(`There was an error installing the Unity Editor. See logs above for details.`); |         throw new Error(`There was an error installing the Unity Editor. See logs above for details.`); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue