Moved changing to WORKING_DIRECTORY here
This commit is contained in:
parent
847c58afc8
commit
8f50f62a52
21
update_psa
21
update_psa
@ -25,6 +25,7 @@ if [ -z $IFS ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
MAINTENANCE="NO"
|
MAINTENANCE="NO"
|
||||||
|
WORKING_DIRECTORY=${PWD}
|
||||||
|
|
||||||
# parse commandline parameters
|
# parse commandline parameters
|
||||||
while test $# -gt 0; do
|
while test $# -gt 0; do
|
||||||
@ -67,16 +68,23 @@ while test $# -gt 0; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if cd "$WORKING_DIRECTORY"; then
|
|
||||||
source ./update_psa_impl
|
source ./update_psa_impl
|
||||||
|
|
||||||
if read_config
|
if [ -z "$WORKING_DIRECTORY" ]; then
|
||||||
then
|
log_fatal "update_psa:${LINENO}: empty WORKING_DIRECTORY"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! cd "$WORKING_DIRECTORY"; then
|
||||||
|
log_fatal "update_psa:${LINENO}: cannot cd to $WORKING_DIRECTORY"
|
||||||
|
fi
|
||||||
|
|
||||||
|
log_info "update_psa:${LINENO}: cd to $WORKING_DIRECTORY"
|
||||||
|
|
||||||
|
if read_config; then
|
||||||
check_default_route
|
check_default_route
|
||||||
check_route_to_repository "185.191.219.134" # git.mimbach.de
|
check_route_to_repository "185.191.219.134" # git.mimbach.de
|
||||||
check_for_running_apism
|
check_for_running_apism
|
||||||
if clone_customer_repository ${CUSTOMER_REPOSITORY_PATH}
|
if clone_customer_repository ${CUSTOMER_REPOSITORY_PATH}; then
|
||||||
then
|
|
||||||
check_sanity_of_repository
|
check_sanity_of_repository
|
||||||
|
|
||||||
if [ "$MAINTENANCE" = "NO" ]; then
|
if [ "$MAINTENANCE" = "NO" ]; then
|
||||||
@ -101,7 +109,4 @@ if cd "$WORKING_DIRECTORY"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
|
||||||
|
|
||||||
exit -1
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user