From cddd4945223d5a4fefae2250eb6eef01be8866da Mon Sep 17 00:00:00 2001 From: Felix Ruess Date: Thu, 5 Mar 2015 14:01:05 +0100 Subject: [PATCH] prevent globbing in fix_code_style.sh so you can easily call it with the recursive option, e.g. ./fix_code_style.sh -r "sw/airborne/subsystems/*.c" --- fix_code_style.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fix_code_style.sh b/fix_code_style.sh index ae7d8287aa..07eb9ccb37 100755 --- a/fix_code_style.sh +++ b/fix_code_style.sh @@ -13,6 +13,8 @@ fi ASTYLE_VERSION=`astyle --version 2>&1| awk '{print $4}'` echo "Using astyle version $ASTYLE_VERSION" +set -f + if [ $(bc <<< "$ASTYLE_VERSION >= 2.03") -eq 1 ]; then astyle --style=kr \ --indent=spaces=2 \