Set working directory to PWD
This commit is contained in:
parent
8b5cda7f73
commit
9d6bb99963
@ -37,17 +37,13 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
|
||||
read_config() {
|
||||
local func="${FUNCNAME[0]}"
|
||||
|
||||
WORKING_DIRECTORY=${WORKING_DIRECTORY:-$UPDATEPSAHOME}
|
||||
WORKING_DIRECTORY=${PWD}
|
||||
CONFIGFILENAME=${CONFIGFILENAME:-'update_psa.conf'}
|
||||
|
||||
if ! [ -f "$CONFIGFILENAME" ]; then
|
||||
log_fatal "$func:${LINENO}: $CONFIGFILENAME not found"
|
||||
fi
|
||||
|
||||
if ! [ -d "$WORKING_DIRECTORY" ]; then
|
||||
log_fatal "$func:${LINENO}: $WORKING_DIRECTORY not found"
|
||||
fi
|
||||
|
||||
log_debug "$func:${LINENO}: CONFIGFILENAME=$CONFIGFILENAME"
|
||||
log_debug "$func:${LINENO}: WORKING_DIRECTORY=$WORKING_DIRECTORY"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user