From 262ceabca380c7c48b65624da27233daf5d74f97 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 25 Oct 2009 19:53:26 +0100 Subject: [PATCH] shorten some lines Signed-off-by: Nico Schottelius --- ccollect.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ccollect.sh b/ccollect.sh index 0c478ab..5ef06a3 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -321,9 +321,7 @@ while [ "${i}" -lt "${no_sources}" ]; do "${c_pre_exec}"; ret="$?" _techo "Finished ${c_pre_exec} (return code ${ret})." - if [ "${ret}" -ne 0 ]; then - _exit_err "${c_pre_exec} failed. Skipping." - fi + [ "${ret}" -eq 0 ] || _exit_err "${c_pre_exec} failed. Skipping." fi # @@ -356,7 +354,7 @@ while [ "${i}" -lt "${no_sources}" ]; do if [ -f "${c_remote_host}" ]; then remote_host="$(cat "${c_remote_host}")"; ret="$?" 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 destination="${remote_host}:${ddir}" else