Skip to content

Commit dee284f

Browse files
committed
fix astyle version check
1 parent 4ad3531 commit dee284f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/astyle.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fi
2222

2323
min_version="3"
2424
astyle_version_check() {
25-
[ `printf "$($1 --version | cut -d ' ' -f4)\n$min_version" | sort -${SV} | head -n1` = "$min_version" ]
25+
[ `printf "$($1 --version 2>&1 | cut -d ' ' -f4)\n$min_version" | sort -${SV} | head -n1` = "$min_version" ]
2626
}
2727

2828
for ASTYLE in ${QGISSTYLE} $(dirname $0)/qgisstyle $(dirname $0)/RelWithDebInfo/qgisstyle astyle

0 commit comments

Comments
 (0)