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
1 changed files with 4 additions and 6 deletions

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() pcmd()
{ {
if [ "${remote_host}" ]; then [ "${remote_host}" ] && set -- "ssh" "${remote_host}" "$@"
ssh "${remote_host}" "$@"
else "$@"
"$@"
fi
} }
# #