forked from ungleich-public/ccollect
shorten some lines
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
3d571e915a
commit
262ceabca3
1 changed files with 2 additions and 4 deletions
|
@ -321,9 +321,7 @@ while [ "${i}" -lt "${no_sources}" ]; do
|
||||||
"${c_pre_exec}"; ret="$?"
|
"${c_pre_exec}"; ret="$?"
|
||||||
_techo "Finished ${c_pre_exec} (return code ${ret})."
|
_techo "Finished ${c_pre_exec} (return code ${ret})."
|
||||||
|
|
||||||
if [ "${ret}" -ne 0 ]; then
|
[ "${ret}" -eq 0 ] || _exit_err "${c_pre_exec} failed. Skipping."
|
||||||
_exit_err "${c_pre_exec} failed. Skipping."
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -356,7 +354,7 @@ while [ "${i}" -lt "${no_sources}" ]; do
|
||||||
if [ -f "${c_remote_host}" ]; then
|
if [ -f "${c_remote_host}" ]; then
|
||||||
remote_host="$(cat "${c_remote_host}")"; ret="$?"
|
remote_host="$(cat "${c_remote_host}")"; ret="$?"
|
||||||
if [ "${ret}" -ne 0 ]; then
|
if [ "${ret}" -ne 0 ]; then
|
||||||
_exit_err "Remote host file ${c_remote_host} exists, but is not readable. Skipping."
|
_exit_err "Remote host file ${c_remote_host} is unreadable. Skipping."
|
||||||
fi
|
fi
|
||||||
destination="${remote_host}:${ddir}"
|
destination="${remote_host}:${ddir}"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue