[Lunar-commits] CVS: theedge/var/lib/lunar/functions config.lunar,
1.9, 1.10
Auke Kok
sofar at lunar-linux.org
Tue Mar 23 09:49:07 GMT 2004
Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv1178/var/lib/lunar/functions
Modified Files:
config.lunar
Log Message:
Properly escaping ':' signs allows the mirrors to be set too :^o
Index: config.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/config.lunar,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- config.lunar 21 Mar 2004 22:17:24 -0000 1.9
+++ config.lunar 23 Mar 2004 09:49:05 -0000 1.10
@@ -36,6 +36,9 @@
lock_file $1 &&
if [ -n "$LINE" ] ; then
+ # make sure we escape those ':' characters:
+ LINE=$(echo $LINE | sed 's/:/\\:/g')
+ NEW=$(echo $NEW | sed 's/:/\\:/g')
sedit "s:$LINE:$NEW:" $1
else
echo "$NEW" >> $1
More information about the Lunar-commits
mailing list