Skip to content

Commit

Permalink
fix astyle version check
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 24, 2018
1 parent 4ad3531 commit dee284f
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 | cut -d ' ' -f4)\n$min_version" | sort -${SV} | head -n1` = "$min_version" ]
[ `printf "$($1 --version 2>&1 | 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 dee284f

Please sign in to comment.