Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 414a39b

Browse files
committed
#695: Fixes WARN messages and quite/silent options.
1 parent 8607a70 commit 414a39b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Diff for: src/usr/sbin/reaper

+13-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ function __print_message ()
8989
esac
9090

9191
if [[ ${quiet} == true ]] \
92-
|| [[ ${silent} == true ]] \
92+
&& [[ ! ${type} =~ ^(error|warn)$ ]]
93+
then
94+
return 0
95+
elif [[ ${silent} == true ]] \
9396
&& [[ ${type} != error ]]
9497
then
9598
return 0
@@ -264,6 +267,15 @@ function main ()
264267
pid="${2}"
265268
shift 2 || break
266269
;;
270+
-q|--quiet)
271+
quiet="true"
272+
shift 1
273+
;;
274+
-qq|--silent)
275+
quiet="true"
276+
silent="true"
277+
shift 1
278+
;;
267279
--signal=*)
268280
signal="${1#*=}"
269281
shift 1

0 commit comments

Comments
 (0)