diff options
author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2022-01-01 19:34:53 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2022-01-02 09:50:20 +0100 |
commit | 059dfe924cae5e1dde35afe2ae045acb851c3f9c (patch) | |
tree | 222251c3199bb183b44c4fd32419bf9c9fb764f1 | |
parent | d266e181986f0d26f62188513059cfe335449b0c (diff) | |
download | sr.ht-docs-059dfe924cae5e1dde35afe2ae045acb851c3f9c.tar.gz |
builds: note acurl() function in preamble
-rw-r--r-- | builds.sr.ht/index.md | 8 |
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 |