always call $@, which is now setup correctly
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
7e155f4219
commit
ec61905fc4
1 changed files with 4 additions and 6 deletions
10
ccollect.sh
10
ccollect.sh
|
@ -89,15 +89,13 @@ add_name()
|
|||
}
|
||||
|
||||
#
|
||||
# Execute on remote host, if backing up to a remote host
|
||||
# Prepend "ssh ${remote_host}", if backing up to a remote host
|
||||
#
|
||||
pcmd()
|
||||
{
|
||||
if [ "${remote_host}" ]; then
|
||||
ssh "${remote_host}" "$@"
|
||||
else
|
||||
"$@"
|
||||
fi
|
||||
[ "${remote_host}" ] && set -- "ssh" "${remote_host}" "$@"
|
||||
|
||||
"$@"
|
||||
}
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue