lib: move forgejocli to the forgejo instance WORK_PATH

Instead of having it in $DIR so that there can be one forgejocli per
forgejo instance.
This commit is contained in:
Earl Warren 2024-06-04 14:41:56 +02:00
parent 2461666aca
commit b62866f3ae
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 22 additions and 16 deletions

View file

@ -1,7 +1,9 @@
# SPDX-License-Identifier: MIT
function doctor_run() {
local version=$1
local config=$1
local base=$(work_path_base $config)
local work_path=$DIR/$base
$DIR/forgejocli doctor check --all # --log-file -
$work_path/forgejocli doctor check --all # --log-file -
}