Commit cd8ffd90 authored by Darko Poljak's avatar Darko Poljak

Merge branch '__hostname_fix' into 'master'

__hostname: silence grep exit 1, when os_version is not numeric

See merge request ungleich-public/cdist!814
parents b8c6f8c8 4ed18e34
......@@ -32,7 +32,7 @@ set_hostname_systemd() {
os=$(cat "$__global/explorer/os")
os_version=$(cat "$__global/explorer/os_version")
os_major=$(echo "$os_version" | grep -o '^[0-9][0-9]*')
os_major=$(echo "$os_version" | grep -o '^[0-9][0-9]*' || true)
max_len=$(cat "$__object/explorer/max_len")
has_hostnamectl=$(cat "$__object/explorer/has_hostnamectl")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment