diff options
author | George Brocklehurst <george.brocklehurst@gmail.com> | 2013-08-04 10:15:49 +0200 |
---|---|---|
committer | Mike Burns <mike@mike-burns.com> | 2013-08-06 10:50:04 +0200 |
commit | 6529b1296a030a562023f4909852634e544bf507 (patch) | |
tree | c0a4c873911a768db3887682759ef8e4d4e111a9 /bin/mkrc | |
parent | fc648042ca2e753b8ecdabc5fa52aea5313c3b03 (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.
Diffstat (limited to 'bin/mkrc')
-rwxr-xr-x | bin/mkrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |