fixed but in ini_gen when is run directly

master
David Kebler 2020-12-13 17:31:37 -08:00
parent d2551161d2
commit 6c7a6697fb
1 changed files with 3 additions and 5 deletions

View File

@ -97,6 +97,8 @@ function ini_gen () {
[[ ! $GITEA_DIR ]] && export GITEA_DIR=$(dirname $(cd $(dirname $(readlink -f $BASH_SOURCE));pwd -P)) [[ ! $GITEA_DIR ]] && export GITEA_DIR=$(dirname $(cd $(dirname $(readlink -f $BASH_SOURCE));pwd -P))
Saved=("$*")
local Ini local Ini
local Lock=true local Lock=true
declare OPTARG declare OPTARG
@ -113,11 +115,7 @@ function ini_gen () {
GITEA_INSTANCE=$1 GITEA_INSTANCE=$1
[[ ! $GITEA_INSTANCE ]] && set_env "$@" set_env "$Saved"
echo $Lock
echo ini_gen
env | grep GITEA
Ini=$GITEA_DIR/config/$GITEA_INSTANCE Ini=$GITEA_DIR/config/$GITEA_INSTANCE