]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxc-clone.in: put $line in quotes to avoid its expansion
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 31 Jul 2012 14:04:33 +0000 (16:04 +0200)
committerDaniel Lezcano <daniel.lezcano@free.fr>
Tue, 31 Jul 2012 14:04:33 +0000 (16:04 +0200)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc-clone.in

index deb01f7d953ca7320ccadbcebd252fd7236e791c..f20411c8281fa6954e5f4a369cac3dc8e806350f 100644 (file)
@@ -271,7 +271,7 @@ while read line; do
        if [ "${line:0:18}" = "lxc.network.hwaddr" ]; then
                echo "lxc.network.hwaddr= 00:16:3e:$(openssl rand -hex 3| sed 's/\(..\)/\1:/g; s/.$//')"
        else
-               echo $line
+               echo "$line"
        fi
 done
 ) < ${c}.old > ${c}