[Lunar-commits] CVS: moonbase/filesys/e2fsprogs BUILD,1.2,1.3

Jon South striker at lunar-linux.org
Sun Feb 29 22:02:11 GMT 2004


Update of /var/cvs/lunar/moonbase/filesys/e2fsprogs
In directory dbguin.lunar-linux.org:/tmp/cvs-serv22922

Modified Files:
	BUILD 
Log Message:
santiy checks to make sure we're actually looking at directories (peltco reported conflicts).
Also minor fix for redundancy: `ls -d ...`

Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/filesys/e2fsprogs/BUILD,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- BUILD	29 Feb 2004 05:25:01 -0000	1.2
+++ BUILD	29 Feb 2004 22:02:09 -0000	1.3
@@ -25,9 +25,12 @@
    rm -f /etc/init.d/mount.sh
 fi                                           &&
 
-for DIR in `ls -d /etc/rc*`; do
-   rm -f $DIR/???mount 
-   rm -f $DIR/???mount.sh
+for DIR in /etc/rc*.d; do
+   # Sanity checks first...
+   if [ -d "$DIR" ]; then
+      rm -f $DIR/???mount 
+      rm -f $DIR/???mount.sh
+   fi
 done                                         &&
 
 ln -sf /etc/init.d/mount /etc/rcS.d/S10mount &&



More information about the Lunar-commits mailing list