Fix multiple matches in Linux kickstart version detection

This commit is contained in:
Kevin Olbrich 2019-09-24 08:31:00 +02:00 committed by Thomas Gelf
parent ef541f92af
commit 237572a826
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ redhat)
esac
icinga_version() {
"$ICINGA2_BIN" --version 2>/dev/null | grep -oP 'version: [rv]?\K\d+\.\d+\.\d+[^\)]*'
"$ICINGA2_BIN" --version 2>/dev/null | grep -oP '\(version: [rv]?\K\d+\.\d+\.\d+[^\)]*'
}
icinga_major() {