We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fb1f65 commit 30c4e79Copy full SHA for 30c4e79
util/lint/lint
@@ -30,11 +30,12 @@ junit_write () {
30
}
31
32
# 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
+case "$(uname)" in
+Darwin|FreeBSD)
+ GETOPT="getopt hIJ" ;;
+*)
+ GETOPT="getopt -l help,junit,invert -o hIJ" ;;
38
+esac
39
40
if ! cmd_args="$($GETOPT -- "$@")"; then
41
usage
0 commit comments