From 059dfe924cae5e1dde35afe2ae045acb851c3f9c Mon Sep 17 00:00:00 2001 From: наб Date: Sat, 1 Jan 2022 19:34:53 +0100 Subject: builds: note acurl() function in preamble --- builds.sr.ht/index.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'builds.sr.ht') 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 -- cgit