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

scripts/cli-docs: do not polute the output

This commit is contained in:
Earl Warren 2023-12-31 17:27:54 +01:00
parent 20080b5456
commit bf93436802
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -22,10 +22,12 @@ function latest() {
}
function download() {
local major="$1"
if test -f /tmp/forgejo ; then
return
fi
local version=$(latest)
local version=$(latest $major)
curl -sS "https://codeberg.org/forgejo/forgejo/releases/download/${version}/forgejo-${version#v}-linux-amd64" > ${FORGEJO}
chmod +x ${FORGEJO}
}
@ -155,7 +157,7 @@ function cleanup() {
function run() {
local version="$1"
dependencies
dependencies >& /dev/null
download $version
generate | cleanup
}