Skip to content

Commit 5a316a6

Browse files
committed
silence astyle version check
1 parent 71eeda7 commit 5a316a6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/astyle.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@
1616

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

2322
for ASTYLE in ${QGISSTYLE} $(dirname $0)/qgisstyle $(dirname $0)/RelWithDebInfo/qgisstyle astyle
2423
do
25-
if type -p $ASTYLE >/dev/null ; then
26-
if astyle_version_check $ASTYLE ; then
24+
if type -p $ASTYLE >/dev/null; then
25+
if astyle_version_check $ASTYLE; then
2726
break
2827
fi
2928
fi

0 commit comments

Comments
 (0)