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:
parent
20080b5456
commit
bf93436802
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue