SVN: rc-scripts/trunk/rc.d/init.d/functions

glen glen at pld-linux.org
Thu Nov 1 02:03:52 CET 2007


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}";


More information about the pld-cvs-commit mailing list