From 4d627f54201605ed0e560c69c8c6ea6faec7aa48 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 31 Dec 2023 17:21:12 +0100 Subject: [PATCH] scripts/cli-docs: needs jq & curl --- scripts/cli-docs.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/cli-docs.sh b/scripts/cli-docs.sh index 2c0b0b03..9883e668 100755 --- a/scripts/cli-docs.sh +++ b/scripts/cli-docs.sh @@ -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 }