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:
parent
2461666aca
commit
b62866f3ae
3 changed files with 22 additions and 16 deletions
|
@ -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 -
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue