Fix cmake-format wrong execution order

This commit is contained in:
Alan Carvalho de Assis 2024-03-12 06:47:10 -03:00 committed by Xiang Xiao
parent 5bf6ea0c20
commit 73576e0d02

View File

@ -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