9 lines
320 B
Bash
Executable File
9 lines
320 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
exec 3>&1 # Make stdout available as fd 3 for the result
|
|
exec 1>&2 # Redirect all output to stderr for logging
|
|
|
|
# <&0 Take stdin and pass it to our binary
|
|
# >&3 Take stdout and pass it to fd3, a Concourse resource requirement
|
|
gitea-resource --action check pr "${@}" <&0 | jq . >&3
|