mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-10 22:59:38 +08:00
cbbf5e2e7c
ask user to install pre-commit hook when code style is checked
12 lines
194 B
Bash
Executable File
12 lines
194 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ $# -eq 0 ]] ; then
|
|
exit 0
|
|
fi
|
|
|
|
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
astyle \
|
|
--options=$DIR/astylerc \
|
|
--preserve-date \
|
|
$*
|