#!/bin/bash
if [ "${1}" = "--quiet" ]; then
  name="$2"
else
  name="$1"
fi
sensitive_services_list=/etc/sensitive_services
grep -x "$name" "$sensitive_services_list" && exit 101
exit 0

#!/bin/sh
name="$1"
sensitive_services_list=/etc/sensitive_services
grep -x "$name" "$sensitive_services_list" && exit 101
exit 0

--- 
+++ 
@@ -1,9 +1,5 @@
-#!/bin/bash
-if [ "${1}" = "--quiet" ]; then
-  name="$2"
-else
-  name="$1"
-fi
+#!/bin/sh
+name="$1"
 sensitive_services_list=/etc/sensitive_services
 grep -x "$name" "$sensitive_services_list" && exit 101
 exit 0
Allow --quiet to be passed to policy file

Currently, our policy file completely fails
if the quiet option is passed in.

This actually causes service actions to hang b/c
--quiet is passed as the name which means that
grep expects the search string to be passed into
STDIN (thus hanging).

Adds explicity support for the --quiet flag to
ensure that service name is still captured.
