@cryptotaxi247 / netdata-1 / commits / 70ce60fdb

replaced egrep with grep - the { character should be escaped for egrep; fixes #2197

Costa Tsaousis (ktsaou) committed May 26, 2017 at 23:49 UTC 70ce60fdb0735ec0887e54e826adcd14269b4d40
1 file changed +1 -1
plugins.d/cgroup-name.sh
+1 -1
@@ -89,7 +89,7 @@ function get_name_api {
89 return 1
90 fi
91 info "Running API command: /containers/${DOCKERID}/json"
92 - JSON=$(echo -e "GET /containers/${DOCKERID}/json HTTP/1.0\r\n" | nc -U /var/run/docker.sock | egrep '^{.*')
92 + JSON=$(echo -e "GET /containers/${DOCKERID}/json HTTP/1.0\r\n" | nc -U /var/run/docker.sock | grep '^{.*')
93 NAME=$(echo $JSON | jq -r .Name,.Config.Hostname | grep -v null | head -n1 | sed 's|^/||')
94 return 0
95 }