Not every fgrep needs to print the result

This commit is contained in:
c0dev0id 2023-02-05 09:57:29 +01:00
parent e2a8362097
commit c7a3c4a7c0

View File

@ -72,7 +72,7 @@ kalender() {
| cut -d" " -f 3- \
| cut -d"|" -f 2-)
if echo "$line" | fgrep ' |'
if echo "$line" | fgrep -q ' |'
then
say "Am $date um $time Uhr findet \"$text\" im \"$loc\" statt."
else
@ -120,13 +120,13 @@ karma() {
[ "$n" == "$(echo "$NICK" | tr '[:upper:]' '[:lower:]' )" ] \
&& say "So aber nicht mein lieber $NICK!" && return
echo "$1" | fgrep "++" \
echo "$1" | fgrep -q -- "++" \
&& savekarma $n "+1"
echo "$1" | fgrep -- "--" \
echo "$1" | fgrep -q -- "--" \
&& savekarma $n "-1"
echo "$1" | fgrep "+-" \
echo "$1" | fgrep -q -- "+-" \
&& say "Echt jetzt, $NICK?"
echo "$1" | fgrep -- "-+" \
echo "$1" | fgrep -q -- "-+" \
&& say "Echt jetzt, $NICK?"
}
transparenzbericht() {