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