From 871a01999538f14e0de81e5f34184f4cddd1f3b9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 23 Jan 2019 16:07:04 +1100 Subject: [PATCH] Tools: fixed code style on linux --- Tools/CodeStyle/ardupilot-astyle.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/CodeStyle/ardupilot-astyle.sh b/Tools/CodeStyle/ardupilot-astyle.sh index 8c1a9a61fb..61cda6e677 100755 --- a/Tools/CodeStyle/ardupilot-astyle.sh +++ b/Tools/CodeStyle/ardupilot-astyle.sh @@ -1,5 +1,6 @@ #!/bin/sh -if [[ "$OSTYPE" == "darwin"* ]]; then + +if [ $(uname) = "Darwin" ]; then DIR=$(dirname $(greadlink -f $0)) else DIR=$(dirname $(readlink -f $0))