exact match

This commit is contained in:
sutogeri
2016-12-01 20:59:53 +01:00
parent 101f6589d0
commit 185354f05f

View File

@@ -12,7 +12,7 @@ PORT="80"
status="status"
function query() {
curl -s http://${HOST}:${PORT}/${status}?xml | grep "$1" | awk -F'>|<' '{ print $3}'
curl -s http://${HOST}:${PORT}/${status}?xml | grep "<$1>" | awk -F'>|<' '{ print $3}'
}
if [ $# == 0 ]; then