From 85e2e84a66b05a576a8482a79c5ccffd7eea9969 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Sat, 25 Apr 2020 13:25:43 +0200 Subject: [PATCH] add back the famous `-x` --- lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.sh b/lib.sh index a9fbf2b2..240514ea 100644 --- a/lib.sh +++ b/lib.sh @@ -1183,7 +1183,7 @@ fi print_text_in_color "$ICyan" "Posting notification to users that are admins, this might take a while..." occ_command_no_check user:list | sed 's|^ - ||g' | sed 's|:.*||' | while read -r admin do - if occ_command_no_check user:info "$admin" | cut -d "-" -f2 | grep -q " admin" + if occ_command_no_check user:info "$admin" | cut -d "-" -f2 | grep -x -q " admin" then print_text_in_color "$IGreen" "Posting '$1' to: $admin" occ_command_no_check notification:generate -l "$2" "$admin" "$1"