X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=chost;h=204637b003852d21d7c661b966f41e9a69d73ae5;hb=14f283f82afc48d6cec1bb7498ec34ac2b0da77c;hp=18c0aacb1f0ec73f2ca956efa1aa12bb4f93be99;hpb=bfd6bbd3a188aac6871f8b5e1116a0979682d52b;p=automated-distro-installer diff --git a/chost b/chost index 18c0aac..204637b 100755 --- a/chost +++ b/chost @@ -18,4 +18,6 @@ case $h in ;; esac h=${h##* } +# trailing dot in a hostname will mess up rsync +h=${h%.} echo $h