Project

General

Profile

« Previous | Next » 

Revision 8967

lib/util.sh: mysql_cmd (): $ssh_server: use new localize_url to clear the value when it's equal to this machine's hostname

View differences:

lib/util.sh
291 291
mysql_cmd () # usage: mysql* () { ...; mysql_cmd "$@"; }
292 292
{
293 293
	echo_func
294
	if test _"$ssh_server" = _"$(hostname -f)"; then local ssh_server=; fi
294
	local ssh_server="$(localize_url "$ssh_server")"
295 295
	if test -n "$ssh_server"; then
296 296
		local ssh_dest="${ssh_dest-${ssh_user:+$ssh_user@}$ssh_server}"
297 297
	fi

Also available in: Unified diff