1 |
commit: 02437d8a3c0a83d2e20af8f05f071233ad1d3339 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 26 15:40:26 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 26 15:41:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/apache.git/commit/?id=02437d8a |
7 |
|
8 |
apache2ctl: Don't show grep usage message with leading "-" options. |
9 |
|
10 |
Thanks-to: Freenode IRC-user "omelius" |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
2.4/scripts/apache2ctl | 2 +- |
14 |
1 file changed, 1 insertion(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/2.4/scripts/apache2ctl b/2.4/scripts/apache2ctl |
17 |
index 9012520..8031b8b 100644 |
18 |
--- a/2.4/scripts/apache2ctl |
19 |
+++ b/2.4/scripts/apache2ctl |
20 |
@@ -20,7 +20,7 @@ load_rc_config() { |
21 |
|
22 |
# If first parameter is a verb defined in $RC_VERBS, pass the command to init script. |
23 |
# In other cases, compile command line and run the command on apache binary. |
24 |
-if echo "${RC_VERBS}" | grep -q "${1}" ; then |
25 |
+if echo "${RC_VERBS}" | grep -q -- "${1}" ; then |
26 |
exec /etc/init.d/apache2 "${@}" |
27 |
else |
28 |
load_rc_config || exit 1 |