ignore stderr when checking astyle version

This commit is contained in:
uclaros 2022-09-22 13:30:52 +03:00 committed by Nyall Dawson
parent 939da08506
commit 37437b0599

View File

@ -22,7 +22,7 @@ fi
min_version="3"
astyle_version_check() {
[ $(printf "$($1 --version 2>&1 | cut -d ' ' -f4)\\n$min_version" | sort -${SV} | head -n1) = "$min_version" ]
[ $(printf "$($1 --version 2>/dev/null | cut -d ' ' -f4)\\n$min_version" | sort -${SV} | head -n1) = "$min_version" ]
}
for ASTYLE in ${QGISSTYLE} $(dirname "$0")/qgisstyle $(dirname "$0")/RelWithDebInfo/qgisstyle astyle