Added more return value checking.

This commit is contained in:
Nico Schottelius 2006-03-19 01:13:38 +01:00
parent e95a2ea208
commit 63cbbb4abf
2 changed files with 10 additions and 0 deletions

View file

@ -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"

View file

@ -2,6 +2,8 @@
http://www.opengroup.org/onlinepubs/009695399/utilities/pax.html
Perhaps replace cp -al?
--> WRITE DOCU / update to use pax
- update documentation:
- german doc?
- exit pre/post exec -> error codes (after implementation!) (in 0.4)