Unverified Commit 5c1bf8a8 authored by Darko Poljak's avatar Darko Poljak Committed by GitHub

Merge pull request #10 from darko-poljak/output-backup-source

Add source name tag in log line
parents 51f46818 a63e16ef
......@@ -150,11 +150,6 @@ _is_interactive()
[ -t 0 -o -p /dev/stdin ]
}
add_name()
{
awk "{ print \"[${name}] \" \$0 }"
}
#
# ssh-"feature": we cannot do '... read ...; ssh ...; < file',
# because ssh reads stdin! -n does not work -> does not ask for password
......@@ -252,6 +247,7 @@ _techo()
{
if [ "${LOGLEVEL}" = "a" ]
then
set -- ${name:+"[${name}]"} $@
"${_techof}" "$@"
fi
}
......@@ -530,7 +526,7 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
# Standard configuration checks
#
if [ ! -e "${backup}" ]; then
_exit_err "Source does not exist."
_exit_err "Source \"${backup}\" does not exist."
fi
#
......@@ -811,7 +807,7 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
_techo "Backup lasted: ${hours}:${minutes}:${seconds} (h:m:s)"
unlock "${name}"
) | add_name
)
done
#
......
* Add Windows(Cygwin) as supported OS
* Add source name tag in log line
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment