Skip to content

Commit

Permalink
also canonicalize the SHELL path
Browse files Browse the repository at this point in the history
  • Loading branch information
squell committed Jan 21, 2025
1 parent 80772a0 commit 533c3eb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/common/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ impl CommandAndArguments {
None => resolved = false,
}
}
}

// resolve symlinks, even if the command was obtained through a PATH or SHELL
// once again, failure to canonicalize should not stop the pipeline
match canonicalize(&command) {
Ok(canon_path) => command = canon_path,
Err(_) => resolved = false,
}
// resolve symlinks, even if the command was obtained through a PATH or SHELL
// once again, failure to canonicalize should not stop the pipeline
match canonicalize(&command) {
Ok(canon_path) => command = canon_path,
Err(_) => resolved = false,
}

CommandAndArguments {
Expand Down

0 comments on commit 533c3eb

Please sign in to comment.