Skip to content

Commit 5dfca35

Browse files
committed
Use sh instead of bash
Signed-off-by: bells17 <bells171@gmail.com>
1 parent 49ff36e commit 5dfca35

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/libcontainer/src/hooks.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,9 @@ mod test {
344344
{
345345
let default_container: Container = Default::default();
346346
let hook = HookBuilder::default()
347-
.path("bash")
347+
.path("sh")
348348
.args(vec![
349-
String::from("bash"),
349+
String::from("sh"),
350350
String::from("-c"),
351351
String::from("printenv TEST_ENV > /dev/null"),
352352
])
@@ -368,9 +368,9 @@ mod test {
368368
{
369369
let default_container: Container = Default::default();
370370
let hook = HookBuilder::default()
371-
.path("bash")
371+
.path("sh")
372372
.args(vec![
373-
String::from("bash"),
373+
String::from("sh"),
374374
String::from("-c"),
375375
String::from("test \"$TEST_ENV\" = 'explicit_value'"),
376376
])
@@ -393,9 +393,9 @@ mod test {
393393
{
394394
let default_container: Container = Default::default();
395395
let hook = HookBuilder::default()
396-
.path("bash")
396+
.path("sh")
397397
.args(vec![
398-
String::from("bash"),
398+
String::from("sh"),
399399
String::from("-c"),
400400
// Verify that the environment is empty (no TEST_ENV, etc.)
401401
String::from("test -z \"$TEST_ENV\""),

0 commit comments

Comments
 (0)