Skip to content
Permalink
Browse files

silence astyle version check

  • Loading branch information
jef-n committed Nov 3, 2017
1 parent 71eeda7 commit 5a316a6a5e749578ec1200f620710a0ae90c6b40
Showing with 2 additions and 3 deletions.
  1. +2 −3 scripts/astyle.sh
@@ -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

0 comments on commit 5a316a6

Please sign in to comment.
You can’t perform that action at this time.