prometheus: simplify runtime test
authorPaul Spooren <mail@aparcar.org>
Fri, 18 Sep 2020 04:56:34 +0000 (18:56 -1000)
committerPaul Spooren <mail@aparcar.org>
Fri, 18 Sep 2020 08:19:49 +0000 (22:19 -1000)
Passed argument no longer contains the release.

Signed-off-by: Paul Spooren <mail@aparcar.org>
utils/prometheus/test.sh

index 54266ab4c5e77a97bc8afd35952385479158d83a..2089454626b6409a063bd4271b603a85d28166e5 100644 (file)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-prometheus --version 2>&1 | grep "${2%%-*}"
+prometheus --version 2>&1 | grep "$2"