File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ impl Command {
8383 Exec :: cmd ( "sudo" )
8484 } ;
8585
86- // use SUDO_ASKPASS program for sudo if present
87- let cmd = if std:: env:: var ( "SUDO_ASKPASS " ) . is_ok ( ) {
86+ // use NH_SUDO_ASKPASS program for sudo if present
87+ let cmd = if std:: env:: var ( "NH_SUDO_ASKPASS " ) . is_ok ( ) {
8888 cmd. arg ( "-A" )
8989 } else {
9090 cmd
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ fn self_elevate() -> ! {
4545 use std:: os:: unix:: process:: CommandExt ;
4646
4747 let mut cmd = std:: process:: Command :: new ( "sudo" ) ;
48- // use SUDO_ASKPASS program for sudo if present
49- if std:: env:: var ( "SUDO_ASKPASS " ) . is_ok ( ) {
48+ // use NH_SUDO_ASKPASS program for sudo if present
49+ if std:: env:: var ( "NH_SUDO_ASKPASS " ) . is_ok ( ) {
5050 cmd. arg ( "-A" ) ;
5151 }
5252
You can’t perform that action at this time.
0 commit comments