The need for GRASS_LOCATION_wgs84.zip can be avoided by creating GRASS GIS Location onthe fly using grass7 -c EPSG:4326 like this:
grass72 -c EPSG:4326 GRASS_LOCATION_wgs84
You can see more examples here (the page is for 7.8, but -c is in 7.2 as well).
You are already calling the grass command (grass72), so the above should just work in the same way. The code won't be shorter, but you will not need to have that .zip file available anymore.
The need for GRASS_LOCATION_wgs84.zip can be avoided by creating GRASS GIS Location onthe fly using
grass7 -c EPSG:4326
like this:You can see more examples here (the page is for 7.8, but -c is in 7.2 as well).
You are already calling the
grass
command (grass72
), so the above should just work in the same way. The code won't be shorter, but you will not need to have that.zip
file available anymore.