diff --git a/update_psa b/update_psa index 24fe212..3bfef46 100755 --- a/update_psa +++ b/update_psa @@ -14,10 +14,10 @@ # ./update_psa --file $PWD/update_psa.conf --wdir $PWD # ############################################################################### -if [ $# -eq 0 ]; then +# if [ $# -eq 0 ]; then # no parameters given -> nothing to do - exit 0 -fi +# exit 0 +#fi if [ -z $IFS ]; then IFS=$'\n' @@ -59,24 +59,27 @@ while test $# -gt 0; do shift done -source ./update_psa_impl +if cd "$WORKING_DIRECTORY"; then + source ./update_psa_impl -if read_config -then - if clone_customer_repository $CUSTOMER_REPOSITORY_PATH - then - check_sanity_of_repository + if read_config + then + if clone_customer_repository ${CUSTOMER_REPOSITORY_PATH} + then + check_sanity_of_repository - #set_updates_available - #while : - #do - # sleep 5 - # updates_available && break - #done + #set_updates_available + #while : + #do + # sleep 5 + # updates_available && break + #done - update_psa + update_psa + fi fi + exit $EXIT_CODE fi -exit $EXIT_CODE +exit -1 ###############################################################################