grep cleaned

This commit is contained in:
Martin Berghaus
2025-02-23 01:15:34 +01:00
parent 03017579c3
commit c389261301
4 changed files with 7 additions and 7 deletions

View File

@@ -8,7 +8,7 @@
function setNeededHostnameOrExit() {
_FQDN="${1:?"Missing unique long hostname (fqdn, eg.: host1.example.net) for this host as first parameter."}"
echo "${_FQDN}" | grep '\.' &> /dev/null \
echo "${_FQDN}" | grep -F '.' &> /dev/null \
&& hostnamectl set-hostname "${_FQDN}" \
&& return 0