0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-12-25 22:40:42 -05:00

scripts/cli-docs: needs jq & curl

This commit is contained in:
Earl Warren 2023-12-31 17:21:12 +01:00
parent cb05660c81
commit 4d627f5420
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -4,6 +4,13 @@ set -e
: ${FORGEJO:=/tmp/forgejo}
function dependencies() {
if ! which jq curl > /dev/null ; then
apt-get -qq update
apt-get -q install -q jq curl
fi
}
function latest() {
local major="$1"
@ -148,6 +155,7 @@ function cleanup() {
function run() {
local version="$1"
dependencies
download $version
generate | cleanup
}