@cryptotaxi247 / netdata-1 / commits / 2d2adb214

Fixing missing "[".

Eric Faden committed Jun 19, 2017 at 15:25 UTC 2d2adb21463b525ef1103e220afeb8e7180b0a59
1 file changed +1 -1
plugins.d/cgroup-name.sh
+1 -1
@@ -140,7 +140,7 @@ if [ -z "${NAME}" ]
140
141 # Proxmox Container (LXC)
142 FILENAME="/etc/pve/lxc/${BASH_REMATCH[1]}.conf"
143 - if [ -f $FILENAME && -r $FILENAME ]]
143 + if [[ -f $FILENAME && -r $FILENAME ]]
144 then
145 NAME=$(grep -e '^hostname: ' /etc/pve/lxc/${BASH_REMATCH[1]}.conf | head -1 | sed -rn 's|\s*hostname\s*:\s*(.*)?$|\1|p')
146 else