more smaller cleanups

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-10-25 15:40:37 +01:00
parent 36f413173a
commit 422b220494

View file

@ -195,9 +195,8 @@ if [ "${USE_ALL}" = 1 ]; then
# #
# Get sources from source configuration # Get sources from source configuration
# #
( cd "${CSOURCES}" && ls -1 > "${TMP}" ); ret=$? ( cd "${CSOURCES}" && ls -1 > "${TMP}" ) || \
_exit_err "Listing of sources failed. Aborting."
[ "${ret}" -eq 0 ] || _exit_err "Listing of sources failed. Aborting."
while read tmp; do while read tmp; do
eval export source_${no_sources}=\"${tmp}\" eval export source_${no_sources}=\"${tmp}\"
@ -235,8 +234,9 @@ if [ -x "${CPREEXEC}" ]; then
[ "${ret}" -eq 0 ] || _exit_err "${CPREEXEC} failed. Aborting" [ "${ret}" -eq 0 ] || _exit_err "${CPREEXEC} failed. Aborting"
fi fi
################################################################################
# #
# Let's do the backup # Let's do the backup - here begins the real stuff
# #
i=0 i=0
while [ "${i}" -lt "${no_sources}" ]; do while [ "${i}" -lt "${no_sources}" ]; do
@ -249,7 +249,7 @@ while [ "${i}" -lt "${no_sources}" ]; do
export name export name
# #
# start ourself, if we want parallel execution # Start ourself, if we want parallel execution
# #
if [ "${PARALLEL}" ]; then if [ "${PARALLEL}" ]; then
"$0" "${INTERVAL}" "${name}" & "$0" "${INTERVAL}" "${name}" &