Skip to content

Commit

Permalink
silence astyle version check
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 3, 2017
1 parent 71eeda7 commit 5a316a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/astyle.sh
Expand Up @@ -16,14 +16,13 @@

min_version="3"
astyle_version_check() {
$1 --version
[ `printf "$($1 --version | cut -d ' ' -f4)\n$min_version" | sort -V | head -n1` = "$min_version" ]
}

for ASTYLE in ${QGISSTYLE} $(dirname $0)/qgisstyle $(dirname $0)/RelWithDebInfo/qgisstyle astyle
do
if type -p $ASTYLE >/dev/null ; then
if astyle_version_check $ASTYLE ; then
if type -p $ASTYLE >/dev/null; then
if astyle_version_check $ASTYLE; then
break
fi
fi
Expand Down

0 comments on commit 5a316a6

Please sign in to comment.