Skip to content

Commit

Permalink
Github actions doesn't have SHELL env
Browse files Browse the repository at this point in the history
  • Loading branch information
MEhrn00 committed Feb 23, 2024
1 parent 2180fee commit ccf83a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Payload_Type/thanatos/agent/ffiwrappers/src/linux/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ mod tests {

#[test]
fn user_shell() {
let shell_env = std::env::var("SHELL").expect("Failed to get 'SHELL' environment variable");
let shell_env = std::env::var("SHELL").unwrap_or_default();
let userinfo = super::UserInfo::current_user().expect("Failed to get user info");
assert_eq!(shell_env, userinfo.shell());
}
Expand Down

0 comments on commit ccf83a3

Please sign in to comment.