Print additional infos about errors to std_out.
This commit is contained in:
@@ -57,11 +57,25 @@ fi
|
||||
# ------------------ Ende Variable ------------------ #
|
||||
# --------------------------------------------------- #
|
||||
|
||||
err_msg="Determin existing SVN repositories failed"
|
||||
if [ $srcHost != "localhost" ] || $_via_ssh_tunnel ;then
|
||||
_REPOSITORIES=`ssh ${ssh_user}@$srcHost "$sudo $find $svn_source_base_path -maxdepth 1 -type d -exec basename 'realpath {}' \;"`
|
||||
#_REPOSITORIES=`ssh ${ssh_user}@$srcHost "$sudo $find $svn_source_base_path -maxdepth 1 -type d -exec basename 'realpath {}' \;"`
|
||||
|
||||
_REPOSITORIES="$(ssh ${ssh_user}@$srcHost "$sudo $find $svn_source_base_path -maxdepth 1 -type d -exec basename 'realpath {}' \;" 2> /tmp/error)"
|
||||
retval=$?
|
||||
|
||||
else
|
||||
_REPOSITORIES=`find $svn_source_base_path -maxdepth 1 -type d -exec basename 'realpath {}' \;`
|
||||
#_REPOSITORIES=`find $svn_source_base_path -maxdepth 1 -type d -exec basename 'realpath {}' \;`
|
||||
|
||||
_REPOSITORIES="$(find $svn_source_base_path -maxdepth 1 -type d -exec basename 'realpath {}' \; 2> /tmp/error)"
|
||||
retval=$?
|
||||
fi
|
||||
if [ "$retval" != "0" ]; then
|
||||
print_error_stdout "${err_msg}:\n $(cat $err_Log)"
|
||||
echolog ""
|
||||
echolog "\t[ERROR] ${err_msg}\n\t $(cat $err_Log)\n"
|
||||
fi
|
||||
|
||||
|
||||
for repos in $_REPOSITORIES ; do
|
||||
_dir=`basename $svn_source_base_path`
|
||||
@@ -142,6 +156,7 @@ if $ARCHIVE ;then
|
||||
## - look about errors..
|
||||
## -
|
||||
if [ "$retval" != "0" ]; then
|
||||
print_error_stdout "${err_msg}:\n $(cat $err_Log)"
|
||||
echolog ""
|
||||
echolog "\t[ERROR] ${err_msg} [ $duration ]\n\t`$cat $err_Log`\n"
|
||||
if ! $keep_backup_on_error ; then
|
||||
|
||||
Reference in New Issue
Block a user