I wanted to install an GRASS extension through a shell script but, upon execution it says:
You don't have permission to install extension to . Try to run g. extension with administration rights (su or sudo) sudo : : command not found
That been said I tried to execute this line of code:
add_on="$(g.extension extension=i.segment.uspo operation=add)"
sudo "$add_on"
I know that I've done something wrong, but I don't know what.
Grass Version: Grass 7.0
Linux dist: Ubuntu 16.04 LTS