aboutsummaryrefslogtreecommitdiffstats
path: root/builds.sr.ht
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2022-01-01 19:34:53 +0100
committerDrew DeVault <sir@cmpwn.com>2022-01-02 09:50:20 +0100
commit059dfe924cae5e1dde35afe2ae045acb851c3f9c (patch)
tree222251c3199bb183b44c4fd32419bf9c9fb764f1 /builds.sr.ht
parentd266e181986f0d26f62188513059cfe335449b0c (diff)
downloadsr.ht-docs-059dfe924cae5e1dde35afe2ae045acb851c3f9c.tar.gz
builds: note acurl() function in preamble
Diffstat (limited to 'builds.sr.ht')
-rw-r--r--builds.sr.ht/index.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/builds.sr.ht/index.md b/builds.sr.ht/index.md
index 4e0cf48..58a6f8a 100644
--- a/builds.sr.ht/index.md
+++ b/builds.sr.ht/index.md
@@ -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