Fix uname flags for darwin in bin/lint
The version of `uname` on Darwin doesn't support the `-o` flag, resulting in an error message when running the `bin/lint` script.
We add an if-branch to short-circuit the `uname-o` call if running on Darwin.
@@ -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
