remote_access.sh: enclose IPv6 address with brackets for rsync
Unlike ssh, rsync expects IPv6 addresses to be enclosed in brackets.
Compared to IPv4, IPv6 addresses rarely change which makes
automation more predictable and generally easier; especially
useful when debugging graphical issues.
As a special and even better case, IPv6 *link-local* addresses
never ever change and do not require any kind of network server or
configuration. They are always available even on isolated,
ad-hoc networks and direct back-to-back connections.
TEST=Use IPv6 addresses as the --remote argument, for instance:
./update_kernel.sh --remote fe80::20e:c6ff:fe88:ffa7%eth0
Signed-off-by: Marc Herbert <email@example.com>
Reviewed-by: Mike Frysinger <firstname.lastname@example.org>
1 file changed