Skip to content

Commit

Permalink
Fixed how shunit2 is detected on FreeBSD and macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Feb 4, 2025
1 parent c782117 commit 3e0483a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/helper.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
if [[ -z "$SHUNIT2" ]]; then
if [[ -f /usr/share/shunit2/shunit2 ]]; then
SHUNIT2=/usr/share/shunit2/shunit2
elif [[ -f /usr/bin/shunit2 ]]; then
SHUNIT2=/usr/bin/shunit2
elif shunit2="$(command -v shunit2)"
SHUNIT2="$shunit2"
else
echo "$0: shunit2 is not installed." >&2
exit 1
Expand Down

0 comments on commit 3e0483a

Please sign in to comment.