remote_access.sh: enclose IPv6 address with brackets for scp

Looks like there was one other place where special syntax is needed
when working with ipv6 addresses. Reuses the same
brackets_enclosed_if_ipv6() used for rsync in remote_cp_to, which
uses scp.

Ref to crosreview.com/277390, which originally added this functionality.

Signed-off-by: Benson Leung <bleung@chromium.org>

BUG=chromium:801933
TEST=./update_kernel.sh --remote="<ipv6 link local addr>"
Does not fail. Succeeds.

Change-Id: Icaaf9af7e43c249c317fac9d4824c98630a72488
Reviewed-on: https://chromium-review.googlesource.com/865967
Commit-Ready: Benson Leung <bleung@chromium.org>
Tested-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed