Skip to content

Commit 30c4e79

Browse files
nsudsgaardMrChromebox
authored andcommitted
util/lint: Add support for FreeBSD
Change-Id: I9f7ceb2233d5d68b6e6f57faeaa0253390e0e003 Signed-off-by: Nicholas Sudsgaard <[email protected]> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86768 Tested-by: build bot (Jenkins) <[email protected]> Reviewed-by: Maximilian Brune <[email protected]>
1 parent 8fb1f65 commit 30c4e79

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

util/lint/lint

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ junit_write () {
3030
}
3131

3232
# Look if we have getopt. If not, build it.
33-
if [ "$(uname)" = "Darwin" ]; then
34-
GETOPT="getopt hIJ"
35-
else
36-
GETOPT="getopt -l help,junit,invert -o hIJ"
37-
fi
33+
case "$(uname)" in
34+
Darwin|FreeBSD)
35+
GETOPT="getopt hIJ" ;;
36+
*)
37+
GETOPT="getopt -l help,junit,invert -o hIJ" ;;
38+
esac
3839

3940
if ! cmd_args="$($GETOPT -- "$@")"; then
4041
usage

0 commit comments

Comments
 (0)