From 63cbbb4abf9c2c7775555947b60574fbba63c59e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 19 Mar 2006 01:13:38 +0100 Subject: [PATCH] Added more return value checking. --- ccollect.sh | 8 ++++++++ doc/TODO | 2 ++ 2 files changed, 10 insertions(+) diff --git a/ccollect.sh b/ccollect.sh index f955e47..fb3278f 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -391,6 +391,10 @@ while [ "$i" -lt "$no_shares" ]; do echo "$(date) Executing $c_post_exec ..." "$c_post_exec" echo "$(date) Finished ${c_post_exec}." + + if [ $? -ne 0 ]; then + echo "$c_post_exec failed." + fi fi end_s=$(date +%s) @@ -421,6 +425,10 @@ if [ -x "$CPOSTEXEC" ]; then echo "Executing $CPOSTEXEC ..." "$CPOSTEXEC" echo "Finished ${CPOSTEXEC}." + + if [ $? -ne 0 ]; then + echo "$CPOSTEXEC failed." + fi fi rm -f "$TMP" diff --git a/doc/TODO b/doc/TODO index 0ced543..2b8ba1f 100644 --- a/doc/TODO +++ b/doc/TODO @@ -1,6 +1,8 @@ - Test pax http://www.opengroup.org/onlinepubs/009695399/utilities/pax.html Perhaps replace cp -al? + + --> WRITE DOCU / update to use pax - update documentation: - german doc?