X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=chost;h=a26529fee9efbeaf3a14632946d59d4e84d7bc8d;hp=18c0aacb1f0ec73f2ca956efa1aa12bb4f93be99;hb=HEAD;hpb=bfd6bbd3a188aac6871f8b5e1116a0979682d52b 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