support old time format
This commit is contained in:
parent
5fc4633a80
commit
af4c0c5040
5
start.sh
5
start.sh
@ -146,7 +146,12 @@ seen() {
|
|||||||
_ts="$(echo "$_l" | cut -d" " -f1)"
|
_ts="$(echo "$_l" | cut -d" " -f1)"
|
||||||
_msg="$(echo "$_l" | cut -d" " -f2-)"
|
_msg="$(echo "$_l" | cut -d" " -f2-)"
|
||||||
_dt="$(date -r "$_ts" +"%Y-%m-%d %H:%M")"
|
_dt="$(date -r "$_ts" +"%Y-%m-%d %H:%M")"
|
||||||
|
if [ -z $_dt ]
|
||||||
|
then
|
||||||
|
say "$_l"
|
||||||
|
else
|
||||||
say "$_dt: $_msg"
|
say "$_dt: $_msg"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
say "Hmm, ich habe keine Ahnung wann $1 zum letzten mal online war."
|
say "Hmm, ich habe keine Ahnung wann $1 zum letzten mal online war."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user