Fix cmake-format wrong execution order
This commit is contained in:
parent
5bf6ea0c20
commit
73576e0d02
@ -101,7 +101,7 @@ check_file() {
|
||||
elif ! cmake-format --check $@ 2>&1; then
|
||||
if [ $cmake_warning_once == 0 ]; then
|
||||
echo -e "\ncmake-format check failed, run following command to update the style:"
|
||||
echo -e " $ cmake-format -o <src> <dst>\n"
|
||||
echo -e " $ cmake-format <src> -o <dst>\n"
|
||||
cmake-format --check $@ 2>&1
|
||||
cmake_warning_once=1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user