epicyon/scripts/errors
2020-06-08 17:46:01 +01:00

7 lines
151 B
Shell
Executable file

#!/bin/bash
journalctl -u epicyon | grep 'File "\|ERROR:' > .errors.txt
if [ ! -f .errors.txt ]; then
echo 'No errors'
else
cat .errors.txt
fi