Author: glen
Date: Thu Nov  1 02:03:52 2007
New Revision: 8927

Modified:
   rc-scripts/trunk/rc.d/init.d/functions
Log:
- use shell construct to test is pathname full path

Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions      (original)
+++ rc-scripts/trunk/rc.d/init.d/functions      Thu Nov  1 02:03:52 2007
@@ -707,7 +707,7 @@
        fi
 
        # First try pidfile or "/var/run/*.pid"
-       if (echo "${pidfile}" | grep -Eq "^/"); then
+       if [[ "$pidfile" = /* ]]; then
                pidfile="${pidfile}"
        else
                pidfile="/var/run/${pidfile}";
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to