mirror of
https://codeberg.org/forgejo/docs.git
synced 2024-11-28 18:42:51 -05:00
scripts/cli-docs: needs jq & curl
This commit is contained in:
parent
cb05660c81
commit
4d627f5420
1 changed files with 8 additions and 0 deletions
|
@ -4,6 +4,13 @@ set -e
|
||||||
|
|
||||||
: ${FORGEJO:=/tmp/forgejo}
|
: ${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() {
|
function latest() {
|
||||||
local major="$1"
|
local major="$1"
|
||||||
|
|
||||||
|
@ -148,6 +155,7 @@ function cleanup() {
|
||||||
function run() {
|
function run() {
|
||||||
local version="$1"
|
local version="$1"
|
||||||
|
|
||||||
|
dependencies
|
||||||
download $version
|
download $version
|
||||||
generate | cleanup
|
generate | cleanup
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue