File tree 3 files changed +10
-8
lines changed
3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,13 @@ pub(crate) enum Confirm {
56
56
Advanced ,
57
57
}
58
58
59
- pub ( crate ) fn confirm_advanced ( ) -> Result < Confirm > {
59
+ pub ( crate ) fn confirm_advanced ( customized_install : bool ) -> Result < Confirm > {
60
60
writeln ! ( process( ) . stdout( ) . lock( ) ) ?;
61
- writeln ! (
62
- process( ) . stdout( ) . lock( ) ,
63
- "1) Proceed with installation (default)"
64
- ) ?;
61
+ let first_option = match customized_install {
62
+ true => "1) Proceed with selected options (default - just press enter)" ,
63
+ false => "1) Proceed with standard installation (default - just press enter)" ,
64
+ } ;
65
+ writeln ! ( process( ) . stdout( ) . lock( ) , "{first_option}" ) ?;
65
66
writeln ! ( process( ) . stdout( ) . lock( ) , "2) Customize installation" ) ?;
66
67
writeln ! ( process( ) . stdout( ) . lock( ) , "3) Cancel installation" ) ?;
67
68
write ! ( process( ) . stdout( ) . lock( ) , ">" ) ?;
Original file line number Diff line number Diff line change @@ -433,10 +433,10 @@ pub(crate) fn install(
433
433
let msg = pre_install_msg ( opts. no_modify_path ) ?;
434
434
435
435
md ( & mut term, msg) ;
436
-
436
+ let mut customized_install = false ;
437
437
loop {
438
438
md ( & mut term, current_install_opts ( & opts) ) ;
439
- match common:: confirm_advanced ( ) ? {
439
+ match common:: confirm_advanced ( customized_install ) ? {
440
440
Confirm :: No => {
441
441
info ! ( "aborting installation" ) ;
442
442
return Ok ( utils:: ExitCode ( 0 ) ) ;
@@ -445,6 +445,7 @@ pub(crate) fn install(
445
445
break ;
446
446
}
447
447
Confirm :: Advanced => {
448
+ customized_install = true ;
448
449
opts = customize_install ( opts) ?;
449
450
}
450
451
}
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ Current installation options:
90
90
profile: default
91
91
modify PATH variable: no
92
92
93
- 1) Proceed with installation (default)
93
+ 1) Proceed with standard installation (default - just press enter )
94
94
2) Customize installation
95
95
3) Cancel installation
96
96
>
You can’t perform that action at this time.
0 commit comments