epicyon/scripts/errors

8 lines
151 B
Bash
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