aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2021-12-31 01:21:21 +0100
committerDrew DeVault <sir@cmpwn.com>2022-01-01 10:46:17 +0100
commitd266e181986f0d26f62188513059cfe335449b0c (patch)
tree7b1050826a0e5753947d45876c568f7753855db8
parent625a464852e016ee93317cf1fba6b2477158b51d (diff)
downloadsr.ht-docs-d266e181986f0d26f62188513059cfe335449b0c.tar.gz
builds/manifest: note acurl() function in preamble
Added with the OAuth key in https://git.sr.ht/~sircmpwn/builds.sr.ht/commit/35491838e5050be4616010cda19544cfb1114ef1
-rw-r--r--builds.sr.ht/manifest.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/builds.sr.ht/manifest.md b/builds.sr.ht/manifest.md
index 1a02e31..cc22277 100644
--- a/builds.sr.ht/manifest.md
+++ b/builds.sr.ht/manifest.md
@@ -114,8 +114,12 @@ with the following preamble:
```sh
#!/usr/bin/env bash
. ~/.buildenv
-set -x
-set -e
+set -xe
+
+acurl() (
+ set +x
+ curl --oauth2-bearer "$OAUTH2_TOKEN" "$@"
+)
```
~/.buildenv contains environment variables specified by the `environment`