diff --git a/bin/lint b/bin/lint index 79837ac99..25b0ae2c1 100755 --- a/bin/lint +++ b/bin/lint @@ -13,7 +13,10 @@ targetbin=$rootdir/target/bin cd "$rootdir" exe= -if [ "$(uname -o)" = Msys ]; then +if [ "$(uname -s)" = Darwin ]; then + # Darwin's uname doesn't support the -o flag so we short circuit here. + :; +elif [ "$(uname -o)" = Msys ]; then exe=.exe fi