We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent abe5756 commit 4bdfaa5Copy full SHA for 4bdfaa5
scripts/astyle.sh
@@ -14,9 +14,15 @@
14
# #
15
###########################################################################
16
17
+# sort by version option
18
+SV=V
19
+if [[ "$OSTYPE" =~ darwin* ]]; then
20
+ SV=n
21
+fi
22
+
23
min_version="3"
24
astyle_version_check() {
- [ `printf "$($1 --version | cut -d ' ' -f4)\n$min_version" | sort -V | head -n1` = "$min_version" ]
25
+ [ `printf "$($1 --version | cut -d ' ' -f4)\n$min_version" | sort -${SV} | head -n1` = "$min_version" ]
26
}
27
28
for ASTYLE in ${QGISSTYLE} $(dirname $0)/qgisstyle $(dirname $0)/RelWithDebInfo/qgisstyle astyle
0 commit comments