diff --git a/scripts/g.download.location/g.download.location.html b/scripts/g.download.location/g.download.location.html index 3787e5e0fb5..6900acc4388 100644 --- a/scripts/g.download.location/g.download.location.html +++ b/scripts/g.download.location/g.download.location.html @@ -11,6 +11,27 @@

DESCRIPTION

The first directory which is a project is used. Other projects or any other files are ignored. +

EXAMPLES

+ +

Download the full GRASS GIS sample project within a running session

+ +Download and unpack the full North Carolina sample project into the user's +HOME directory: + +
+g.download.location url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz path=$HOME
+
+ +

Download the full GRASS GIS sample project in a temporary session

+ +In a temporary session, download and unpack the full North Carolina sample project +into the user's HOME directory: + +
+grass --tmp-location XY --exec g.download.location url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz path=$HOME
+
+ +

SEE ALSO

diff --git a/scripts/g.download.location/g.download.location.py b/scripts/g.download.location/g.download.location.py index a04012aedca..bca79b12492 100644 --- a/scripts/g.download.location/g.download.location.py +++ b/scripts/g.download.location/g.download.location.py @@ -102,7 +102,9 @@ def main(options, unused_flags): if destination.exists(): gs.fatal( - _("Location named <{}> already exists, download canceled").format(name) + _( + "Location named <{name}> already exists in <{directory}>, download canceled" + ).format(name=name, directory=database) ) gs.message(_("Downloading and extracting..."))