Moved changing to WORKING_DIRECTORY into update_psa

This commit is contained in:
Gerhard Hoffmann 2023-05-24 17:28:28 +02:00
parent 2abdf963ac
commit 847c58afc8

View File

@ -39,7 +39,6 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
read_config() {
local func="${FUNCNAME[0]}"
WORKING_DIRECTORY=${PWD}
CONFIGFILENAME=${CONFIGFILENAME:-'update_psa.conf'}
if ! [ -f "$CONFIGFILENAME" ]; then
@ -51,13 +50,6 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
local readonly cf="$CONFIGFILENAME"
### TODO: wieso wird hier in das verzeichnis gewechselt
if cd $WORKING_DIRECTORY ; then
log_debug "$func:${LINENO}: cd to $WORKING_DIRECTORY"
else
log_fatal "$func:${LINENO}: cannot cd to $WORKING_DIRECTORY"
fi
readonly GIT_SSL_NO_VERIFY="$(cat "$cf" | jq -r .GIT_SSL_NO_VERIFY)"
assert_s GIT_SSL_NO_VERIFY