File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -463,13 +463,23 @@ public final class XcodeInstaller {
463
463
let destination = Path . xcodesApplicationSupport/ " Xcode- \( xcode. version) . \( xcode. filename. suffix ( fromLast: " . " ) ) "
464
464
switch downloader {
465
465
case . aria2( let aria2Path) :
466
+ if Current . shell. isatty ( ) {
467
+ Current . logging. log ( " Downloading with aria2 " . green)
468
+ // Add 1 extra line as we are overwriting with download progress
469
+ Current . logging. log ( " " )
470
+ }
466
471
return downloadXcodeWithAria2 (
467
472
xcode,
468
473
to: destination,
469
474
aria2Path: aria2Path,
470
475
progressChanged: progressChanged
471
476
)
472
477
case . urlSession:
478
+ if Current . shell. isatty ( ) {
479
+ Current . logging. log ( " Downloading with urlSession - for faster downloads install aria2 (`brew install aria2`) " . black. onYellow)
480
+ // Add 1 extra line as we are overwriting with download progress
481
+ Current . logging. log ( " " )
482
+ }
473
483
return downloadXcodeWithURLSession (
474
484
xcode,
475
485
to: destination,
You can’t perform that action at this time.
0 commit comments