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 @@ -55,8 +55,8 @@ fn self_elevate() -> ! {
5555 use std:: os:: unix:: process:: CommandExt ;
5656
5757 let mut cmd = std:: process:: Command :: new ( "sudo" ) ;
58- // use SUDO_ASKPASS program for sudo if present
59- if std:: env:: var ( "SUDO_ASKPASS " ) . is_ok ( ) {
58+ // use NH_SUDO_ASKPASS program for sudo if present
59+ if std:: env:: var ( "NH_SUDO_ASKPASS " ) . is_ok ( ) {
6060 cmd. arg ( "-A" ) ;
6161 }
6262
You can’t perform that action at this time.
0 commit comments