File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ mod tests {
137
137
let agent_mock = thread:: spawn ( move || {
138
138
let req = ZMsg :: recv ( & mut server) . unwrap ( ) ;
139
139
assert_eq ! ( "command::exec" , req. popstr( ) . unwrap( ) . unwrap( ) ) ;
140
- assert_eq ! ( "which brew" , req. popstr( ) . unwrap( ) . unwrap( ) ) ;
140
+ assert_eq ! ( "type brew" , req. popstr( ) . unwrap( ) . unwrap( ) ) ;
141
141
142
142
let rep = ZMsg :: new ( ) ;
143
143
rep. addstr ( "Ok" ) . unwrap ( ) ;
@@ -195,7 +195,7 @@ mod tests {
195
195
196
196
let req = ZMsg :: recv ( & mut server) . unwrap ( ) ;
197
197
assert_eq ! ( "command::exec" , req. popstr( ) . unwrap( ) . unwrap( ) ) ;
198
- assert_eq ! ( "which brew" , req. popstr( ) . unwrap( ) . unwrap( ) ) ;
198
+ assert_eq ! ( "type brew" , req. popstr( ) . unwrap( ) . unwrap( ) ) ;
199
199
200
200
let rep = ZMsg :: new ( ) ;
201
201
rep. addstr ( "Ok" ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ impl Provider for Apt {
21
21
}
22
22
23
23
fn is_active ( & self , host : & mut Host ) -> Result < bool > {
24
- let cmd = Command :: new ( "which apt-get" ) ;
24
+ let cmd = Command :: new ( "type apt-get" ) ;
25
25
let result = try!( cmd. exec ( host) ) ;
26
26
27
27
Ok ( result. exit_code == 0 )
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ impl Provider for Dnf {
22
22
}
23
23
24
24
fn is_active ( & self , host : & mut Host ) -> Result < bool > {
25
- let cmd = Command :: new ( "which dnf" ) ;
25
+ let cmd = Command :: new ( "type dnf" ) ;
26
26
let result = try!( cmd. exec ( host) ) ;
27
27
28
28
Ok ( result. exit_code == 0 )
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ impl Provider for Homebrew {
22
22
}
23
23
24
24
fn is_active ( & self , host : & mut Host ) -> Result < bool > {
25
- let cmd = Command :: new ( "which brew" ) ;
25
+ let cmd = Command :: new ( "type brew" ) ;
26
26
let result = try!( cmd. exec ( host) ) ;
27
27
28
28
Ok ( result. exit_code == 0 )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ impl Provider for Nix {
21
21
}
22
22
23
23
fn is_active ( & self , host : & mut Host ) -> Result < bool > {
24
- let cmd = Command :: new ( "which nix-env" ) ;
24
+ let cmd = Command :: new ( "type nix-env" ) ;
25
25
let result = try!( cmd. exec ( host) ) ;
26
26
27
27
Ok ( result. exit_code == 0 )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ impl Provider for Pkg {
21
21
}
22
22
23
23
fn is_active ( & self , host : & mut Host ) -> Result < bool > {
24
- let cmd = Command :: new ( "which pkg" ) ;
24
+ let cmd = Command :: new ( "type pkg" ) ;
25
25
let result = try!( cmd. exec ( host) ) ;
26
26
27
27
Ok ( result. exit_code == 0 )
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ impl Provider for Yum {
22
22
}
23
23
24
24
fn is_active ( & self , host : & mut Host ) -> Result < bool > {
25
- let cmd = Command :: new ( "which yum" ) ;
25
+ let cmd = Command :: new ( "type yum" ) ;
26
26
let result = try!( cmd. exec ( host) ) ;
27
27
28
28
Ok ( result. exit_code == 0 )
You can’t perform that action at this time.
0 commit comments