Project

General

Profile

« Previous | Next » 

Revision 8869

lib/util.sh: mysql_cmd (): allow specifying the ssh_dest as a separate ssh_server and ssh_user

View differences:

lib/util.sh
195 195
mysql_cmd () # usage: mysql* () { ...; mysql_cmd "$@"; }
196 196
{
197 197
	echo_func "$@"
198
	if test -n "$ssh_server"; then
199
		local ssh_dest="${ssh_dest-${ssh_user:+$ssh_user@}$ssh_server}"
200
	fi
201
	
198 202
	local var=ssh_dest; local_inv
199 203
	echo_run ${no_ssh_dest:+env }${ssh_dest:+ssh "$ssh_dest" }"${FUNCNAME[1]}" \
200 204
${server:+ --host="$server" }${user+--user="$user" }\

Also available in: Unified diff