diff --git a/scripts/check-code-formatting b/scripts/check-code-formatting index 86c2e64b22..1f79900917 100755 --- a/scripts/check-code-formatting +++ b/scripts/check-code-formatting @@ -2,7 +2,7 @@ readlink_bin='readlink' -if [[ "$OSTYPE" == "darwin"* ]]; then +if [ "$(uname)" == "Darwin" ]; then if ! [ -x "$(command -v greadlink)" ]; then echo 'Please install greadlink with Homebrew: brew install coreutils' exit 1