summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar George Brocklehurst <george.brocklehurst@gmail.com>2013-08-04 10:15:49 +0200
committerGravatar Mike Burns <mike@mike-burns.com>2013-08-06 10:50:04 +0200
commit6529b1296a030a562023f4909852634e544bf507 (patch)
treec0a4c873911a768db3887682759ef8e4d4e111a9
parentfc648042ca2e753b8ecdabc5fa52aea5313c3b03 (diff)
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.
-rwxr-xr-xbin/mkrc2
1 files changed, 1 insertions, 1 deletions
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