From 422b22049436ce322fbde6cef9f01fc1a3214717 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 25 Oct 2009 15:40:37 +0100 Subject: [PATCH] more smaller cleanups Signed-off-by: Nico Schottelius --- ccollect.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ccollect.sh b/ccollect.sh index 3d13bfc..f4fc319 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -195,9 +195,8 @@ if [ "${USE_ALL}" = 1 ]; then # # Get sources from source configuration # - ( cd "${CSOURCES}" && ls -1 > "${TMP}" ); ret=$? - - [ "${ret}" -eq 0 ] || _exit_err "Listing of sources failed. Aborting." + ( cd "${CSOURCES}" && ls -1 > "${TMP}" ) || \ + _exit_err "Listing of sources failed. Aborting." while read tmp; do eval export source_${no_sources}=\"${tmp}\" @@ -235,8 +234,9 @@ if [ -x "${CPREEXEC}" ]; then [ "${ret}" -eq 0 ] || _exit_err "${CPREEXEC} failed. Aborting" fi +################################################################################ # -# Let's do the backup +# Let's do the backup - here begins the real stuff # i=0 while [ "${i}" -lt "${no_sources}" ]; do @@ -249,7 +249,7 @@ while [ "${i}" -lt "${no_sources}" ]; do export name # - # start ourself, if we want parallel execution + # Start ourself, if we want parallel execution # if [ "${PARALLEL}" ]; then "$0" "${INTERVAL}" "${name}" &