diff --git a/yadm b/yadm index 8914183..6607de4 100755 --- a/yadm +++ b/yadm @@ -104,7 +104,8 @@ function alt() { #; regex for matching "##SYSTEM.HOSTNAME.USER" match_system=$(uname -s) - match_host=$(hostname -s) + match_host=$(hostname) + match_host=${match_host%%.*} #; trim any domain from hostname match_user=$(id -u -n) match="^(.+)##($match_system|$match_system.$match_host|$match_system.$match_host.$match_user|())$"