~sircmpwn/sr.ht-docs

059dfe924cae5e1dde35afe2ae045acb851c3f9c — наб 26 days ago d266e18
builds: note acurl() function in preamble
1 files changed, 6 insertions(+), 2 deletions(-)

M builds.sr.ht/index.md
M builds.sr.ht/index.md => builds.sr.ht/index.md +6 -2
@@ 134,8 134,12 @@ Each task's script is given a preamble that looks like this:
```sh
#!/usr/bin/env bash
. ~/.buildenv
set -x
set -e
set -xe

acurl() (
	set +x
	curl --oauth2-bearer "$OAUTH2_TOKEN" "$@"
)
```

The actual shell varies depending on your build image. `~/.buildenv` contains