1
0
Fork 0
mirror of synced 2024-06-25 00:11:10 -04:00

Remove dependency on hostname

This commit is contained in:
Ross Smith II 2018-08-16 13:33:24 -07:00 committed by GitHub
parent 09a018ea5a
commit 8061c5ead6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
yadm
View file

@ -147,7 +147,7 @@ function alt() {
local_host="$(config local.hostname)"
if [ -z "$local_host" ] ; then
local_host=$(hostname)
local_host=$(uname -n)
local_host=${local_host%%.*} #; trim any domain from hostname
fi
match_host="(%|$local_host)"