commit e6c04e15a5c9ed1b5159443686889d0bf448f290
Author: Elan Ruusamäe <[email protected]>
Date:   Wed Jul 3 13:00:01 2013 +0300

    no deprecated egrep

 php-fcgi.init | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/php-fcgi.init b/php-fcgi.init
old mode 100644
new mode 100755
index 83bbb8f..8e6d3c6
--- a/php-fcgi.init
+++ b/php-fcgi.init
@@ -34,11 +34,11 @@ if [ -z "$PHP_FCGI_BINARY" ]; then
 fi
 
 is_ipv4() {
-       echo "$1" | LC_ALL=C egrep -q 
'^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}$'
+       echo "$1" | LC_ALL=C grep -Eq 
'^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}$'
 }
 
 is_numeric() {
-       echo "$1" | LC_ALL=C egrep -q '^[0-9]+$'
+       echo "$1" | LC_ALL=C grep -Eq '^[0-9]+$'
 }
 
 checkconfig() {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-fcgi-init.git/commitdiff/7d1b17298a8af40f9329399626d905b0905a259d

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to