more smaller cleanups
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
36f413173a
commit
422b220494
1 changed files with 5 additions and 5 deletions
10
ccollect.sh
10
ccollect.sh
|
@ -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}" &
|
||||||
|
|
Loading…
Reference in a new issue