]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-devsetup: Don't use [[ because sh does not support it
authorChangZhuo Chen (陳昌倬) <czchen@gmail.com>
Tue, 20 May 2014 12:43:25 +0000 (20:43 +0800)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 20 May 2014 12:53:11 +0000 (14:53 +0200)
Signed-off-by: ChangZhuo Chen (陳昌倬) <czchen@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
config/init/systemd/lxc-devsetup

index 3999ac89dc6be8e7766902f239596802992e4289..e765daf355f1bde0f90809be1cc4ea987b09e89d 100755 (executable)
@@ -2,7 +2,7 @@
 
 # lxc.devsetup - Setup host /dev for container /dev subdirectories.
 
-if [[ ! -d /dev/.lxc ]]
+if [ ! -d /dev/.lxc ]
 then
     echo "Creating /dev/.lxc"
     mkdir /dev/.lxc
@@ -17,7 +17,7 @@ else
     mount -t tmpfs tmpfs /dev/.lxc
 fi
 
-if [[ ! -d /dev/.lxc/user ]]
+if [ ! -d /dev/.lxc/user ]
 then
     echo "Creating /dev/.lxc/user"
     mkdir /dev/.lxc/user