Not every fgrep needs to print the result
This commit is contained in:
parent
e2a8362097
commit
c7a3c4a7c0
10
start.sh
10
start.sh
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user