[Lunar-commits] CVS: theedge/var/lib/lunar/functions config.lunar, 1.11, 1.12

Jerry Lundström prox at lunar-linux.org
Thu Apr 8 13:53:43 GMT 2004


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv6624

Modified Files:
	config.lunar 
Log Message:
changed sed to cover substrings

Index: config.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/config.lunar,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- config.lunar	8 Apr 2004 13:25:37 -0000	1.11
+++ config.lunar	8 Apr 2004 13:53:41 -0000	1.12
@@ -49,7 +49,7 @@
 
 get_config() {
   if [ -f $1 ] ; then
-    cat $1 | grep -w "$2=.*" | cut -d= -f2- | sed 's/"//g'
+    cat $1 | grep -w "$2=.*" | cut -d= -f2- | sed -e 's/^"//' -e 's/"$//'
   fi
 }
 



More information about the Lunar-commits mailing list