[Lunar-commits] CVS: theedge/var/lib/lunar/functions edit.lunar,
1.11, 1.12
Stefan Wold
ratler at lunar-linux.org
Wed Feb 25 11:59:38 GMT 2004
Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv18161
Modified Files:
edit.lunar
Log Message:
Patch submited by Jerry Lundström that patch_it function to correctly grep for filetype
Index: edit.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/edit.lunar,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- edit.lunar 29 Dec 2003 18:09:42 -0000 1.11
+++ edit.lunar 25 Feb 2004 11:59:36 -0000 1.12
@@ -18,15 +18,15 @@
patch_it () {
verbose_msg "patch_it \"$1\" \"$2\"";
- if [[ -n `echo $1 | grep .tar` ]] ; then
+ if [[ -n `echo $1 | grep "\.tar\$"` ]] ; then
TARCMD="tar x -O"
else
TARCMD="cat"
fi
- if [[ -n `echo $1 | grep .bz2` ]] ; then
+ if [[ -n `echo $1 | grep "\.bz2\$"` ]] ; then
GZCMD="bzcat"
- elif [[ -n `echo $1 | grep .gz` ]] ; then
+ elif [[ -n `echo $1 | grep "\.gz\$"` ]] ; then
GZCMD="zcat"
else
GZCMD="cat"
More information about the Lunar-commits
mailing list