From 6529b1296a030a562023f4909852634e544bf507 Mon Sep 17 00:00:00 2001 From: George Brocklehurst Date: Sun, 4 Aug 2013 10:15:49 +0200 Subject: Fix inconsistent hostname handling `lsrc` was stripping hostname domain suffixes, but `mkrc` was not meaning that `mkrc -o` didn't work correctly with a suffix. This was particularly noticeable on OS X where the hostname has a `.local` suffix by default. --- bin/mkrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mkrc b/bin/mkrc index d8ed478..8cd2bd0 100755 --- a/bin/mkrc +++ b/bin/mkrc @@ -12,7 +12,7 @@ destination() { if [ "x$tag" != "x" ]; then echo $dotfiles_dir/tag-$tag elif [ $in_host = 1 ]; then - echo $dotfiles_dir/host-`hostname` + echo $dotfiles_dir/host-$HOSTNAME else echo $dotfiles_dir fi -- cgit v1.2.3