benducke / Network-reconstruction-tools-for-GRASS-GIS

Node-based network model generator for GRASS GIS 7.x (and QGIS 3.x)
GNU General Public License v3.0
4 stars 1 forks source link

macOS: replace awk sorting with sort command #36

Closed benducke closed 2 years ago

benducke commented 2 years ago

Linux distros and MSYS2 for Windows ship with GNU awk, but macOS comes with a more primitive awk that is missing some extended functionality found in gawk. In the case of v.net.models, this only affects the use of the sorting function "asorti()". Fortunately, this is easy to replace with "sort -n" for all three OS.

benducke commented 2 years ago

Done in https://github.com/benducke/v.net.models/commit/f64ff3e32d1146b70a455edff3e6489d3cf9dec8