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"
This commit is contained in:
Felix Ruess
2015-03-05 14:01:05 +01:00
parent cd7768792a
commit cddd494522
+2
View File
@@ -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 \