Skip to content

Commit

Permalink
The version output of icinga prints "Version" capatalized. This accom…
Browse files Browse the repository at this point in the history
…modates both by ignoring case in grep.
  • Loading branch information
julian-weinert authored and Thomas-Gelf committed Nov 4, 2019
1 parent 53309a3 commit 13e217c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/linux-agent-installer/Icinga2Agent.bash
Expand Up @@ -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 -oPi '\(version: [rv]?\K\d+\.\d+\.\d+[^\)]*'
}

version() {
Expand Down

0 comments on commit 13e217c

Please sign in to comment.