[lxc-devel] [PATCH lxcfs 1/2] lxc mount hook: add missing space before ]

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Oct 21 09:37:07 UTC 2015


Otherwise [ interprets the ] as part of the path and also
errors about a missing ']'
---
 share/lxc.mount.hook.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/lxc.mount.hook.in b/share/lxc.mount.hook.in
index 7194ab8..5ed2d60 100755
--- a/share/lxc.mount.hook.in
+++ b/share/lxc.mount.hook.in
@@ -30,7 +30,7 @@ if [ -d "${LXC_ROOTFS_MOUNT}/sys/fs/cgroup" ]; then
                 continue
             fi
 
-	    if [ ! -d ${LXC_ROOTFS_MOUNT}/sys/fs/cgroup/$DEST]; then
+	    if [ ! -d ${LXC_ROOTFS_MOUNT}/sys/fs/cgroup/$DEST ]; then
                 mkdir ${LXC_ROOTFS_MOUNT}/sys/fs/cgroup/$DEST
 	    fi
 
-- 
2.1.4




More information about the lxc-devel mailing list