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}
|
||||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue