]> arthur.barton.de Git - ax-zsh.git/commit
30_hostname: Validate SHORT_HOST variable
authorAlexander Barton <alex@barton.de>
Sat, 15 Apr 2017 22:41:34 +0000 (00:41 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 15 Apr 2017 22:41:34 +0000 (00:41 +0200)
commitd7c38658ad0e6ae03a6ca63c7cb80c44092ff357
treeb3763855113c16d81a6312bb80bdef9e19128ee5
parent1a67062339925a470db1b61e3366b79de3368775
30_hostname: Validate SHORT_HOST variable

Old(er) versions of hostnamectl(1) don't support the "--pretty"
parameter but output verbose text showing all information. So
validate the SHORT_HOST variable afterwards and unset it again
when it contains ":" characters: then the fallback is used.

Tested with hostnamectl(1) of systemd 204.
core/30_hostname/30_hostname.zprofile