livecdfs-update.sh: Escape ampersands in STARTX sed expression
[catalyst.git] / targets / support / livecdfs-update.sh
index 77d694ef0c0562dfa29e8087fda2840cf631cf2e..fda3e362a4dc3ba49c781ad461bb5e2df34a134d 100644 (file)
@@ -389,7 +389,7 @@ esac
 if [ -e /etc/startx ]
 then
        sed -i \
-               "s:##STARTX:source /etc/profile && su - ${first_user} -c startx:" \
+               "s:##STARTX:source /etc/profile \&\& su - ${first_user} -c startx:" \
                /root/.bashrc
 fi