Skip to content

Commit 3e0483a

Browse files
committed
Fixed how shunit2 is detected on FreeBSD and macOS.
1 parent c782117 commit 3e0483a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/helper.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
if [[ -z "$SHUNIT2" ]]; then
22
if [[ -f /usr/share/shunit2/shunit2 ]]; then
33
SHUNIT2=/usr/share/shunit2/shunit2
4-
elif [[ -f /usr/bin/shunit2 ]]; then
5-
SHUNIT2=/usr/bin/shunit2
4+
elif shunit2="$(command -v shunit2)"
5+
SHUNIT2="$shunit2"
66
else
77
echo "$0: shunit2 is not installed." >&2
88
exit 1

0 commit comments

Comments
 (0)