Project

General

Profile

« Previous | Next » 

Revision 8860

lib/util.sh: added mysql_cmd ()

View differences:

lib/util.sh
175 175

  
176 176
### MySQL
177 177

  
178
mysql_cmd () # usage: mysql* () { ...; mysql_cmd "$FUNCNAME" "$@"; }
179
{
180
	echo_func "$@"
181
	local cmd="$1"; shift
182
	local var=ssh_dest; local_inv
183
	echo_run ${no_ssh_dest:+env }${ssh_dest:+ssh "$ssh_dest" }"$cmd" ${server:+\
184
--host="$server" }${user+--user="$user" }--password${password+="$password"} "$@"
185
}
186

  
178 187
mysql ()
179 188
{
180 189
	echo_func "$@"

Also available in: Unified diff