Skip to content

Commit

Permalink
CI: silence confusing --help output in workflows/test.sh (#1276)
Browse files Browse the repository at this point in the history
This PR silences some confusing help text output during data installation by `g.download.location`:

For the error, see
https://github.com/neteler/grass-addons/actions/runs/12647834206/job/35240965201

Additionally: comment added.
  • Loading branch information
neteler authored Jan 8, 2025
1 parent 42d2547 commit 5ddcd34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
set -e

# Install module from addons if not available (in v7).
if ! grass --tmp-project XY --exec g.download.location --help; then
if ! grass --tmp-project XY --exec g.download.location --help 2>1; then
grass --tmp-project XY --exec \
g.extension g.download.location
fi

# note: g.download.location is a wrapper around g.download.project
grass --tmp-project XY --exec \
g.download.location url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz path=$HOME

Expand Down

0 comments on commit 5ddcd34

Please sign in to comment.