Change to passed working directory
This commit is contained in:
parent
9d6bb99963
commit
2045dcedf5
19
update_psa
19
update_psa
@ -14,10 +14,10 @@
|
|||||||
# ./update_psa --file $PWD/update_psa.conf --wdir $PWD
|
# ./update_psa --file $PWD/update_psa.conf --wdir $PWD
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
if [ $# -eq 0 ]; then
|
# if [ $# -eq 0 ]; then
|
||||||
# no parameters given -> nothing to do
|
# no parameters given -> nothing to do
|
||||||
exit 0
|
# exit 0
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
if [ -z $IFS ]; then
|
if [ -z $IFS ]; then
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
@ -59,11 +59,12 @@ while test $# -gt 0; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
source ./update_psa_impl
|
if cd "$WORKING_DIRECTORY"; then
|
||||||
|
source ./update_psa_impl
|
||||||
|
|
||||||
if read_config
|
if read_config
|
||||||
then
|
then
|
||||||
if clone_customer_repository $CUSTOMER_REPOSITORY_PATH
|
if clone_customer_repository ${CUSTOMER_REPOSITORY_PATH}
|
||||||
then
|
then
|
||||||
check_sanity_of_repository
|
check_sanity_of_repository
|
||||||
|
|
||||||
@ -76,7 +77,9 @@ then
|
|||||||
|
|
||||||
update_psa
|
update_psa
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
exit $EXIT_CODE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit $EXIT_CODE
|
exit -1
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user