epicyon/scripts/errors

8 lines
151 B
Plaintext
Raw Normal View History

2019-09-29 10:07:34 +00:00
#!/bin/bash
2020-06-08 16:46:01 +00:00
journalctl -u epicyon | grep 'File "\|ERROR:' > .errors.txt
2019-09-29 10:07:34 +00:00
if [ ! -f .errors.txt ]; then
echo 'No errors'
else
cat .errors.txt
fi