Skip to content

Commit

Permalink
ignore stderr when checking astyle version
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros authored and nyalldawson committed Sep 25, 2022
1 parent 939da08 commit 37437b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/astyle.sh
Expand Up @@ -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
Expand Down

0 comments on commit 37437b0

Please sign in to comment.