mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
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:
@@ -13,6 +13,8 @@ fi
|
|||||||
ASTYLE_VERSION=`astyle --version 2>&1| awk '{print $4}'`
|
ASTYLE_VERSION=`astyle --version 2>&1| awk '{print $4}'`
|
||||||
echo "Using astyle version $ASTYLE_VERSION"
|
echo "Using astyle version $ASTYLE_VERSION"
|
||||||
|
|
||||||
|
set -f
|
||||||
|
|
||||||
if [ $(bc <<< "$ASTYLE_VERSION >= 2.03") -eq 1 ]; then
|
if [ $(bc <<< "$ASTYLE_VERSION >= 2.03") -eq 1 ]; then
|
||||||
astyle --style=kr \
|
astyle --style=kr \
|
||||||
--indent=spaces=2 \
|
--indent=spaces=2 \
|
||||||
|
|||||||
Reference in New Issue
Block a user