Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hashsum: use file_stem() instead of file_name()
This program matches the binary name to determine which algorithm to use. On Windows, `file_name()` was matching against a string with `.exe`, causing binaries like `sha256sum.exe` to not properly detect the algorithm. By using `file_stem()`, we exclude the `.exe` from matching, achieving similar and correct behavior on Windows.
- Loading branch information