always call $@, which is now setup correctly

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-11-01 14:02:50 +01:00
parent 7e155f4219
commit ec61905fc4

View file

@ -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
[ "${remote_host}" ] && set -- "ssh" "${remote_host}" "$@"
"$@"
fi
}
#