Revision 8869
Added by Aaron Marcuse-Kubitza over 11 years ago
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
lib/util.sh: mysql_cmd (): allow specifying the ssh_dest as a separate ssh_server and ssh_user