--- mcore-src/trunk/mcore-tools/src/include/daemon.global.class.in 2015/09/17 07:22:58 2553 +++ mcore-src/trunk/mcore-tools/src/include/daemon.global.class.in 2015/09/17 07:39:31 2558 @@ -98,13 +98,21 @@ run_push_config() { + local serial="$1" local config - for config in $(print_push_config) + if [[ -z ${serial} ]] + then + eecho "missing serial" + return 1 + fi + + for config in $(NOCOLORS=1 print_push_config) do if [[ -n $(typeset -f push_config_${config}) ]] then - push_config_"${config}" + decho "running: 'push_config_${config} ${serial}'" + push_config_"${config}" "${serial}" else decho "no function 'push_config_${config}' for '${config}' found." fi @@ -279,7 +287,7 @@ local sorted # sort them alpabetically - push_config=$(for i in ${PUSH_CONFIG}; do echo "${i}"; done | sort) + sorted=$(for i in ${PUSH_CONFIG}; do echo "${i}"; done | sort) # do not escape, or CRLFS get printed to screen too rvecho ${sorted} }