Script to show errors

main2
Bob Mottram 2019-09-29 11:07:34 +01:00
parent 3c77111796
commit 98064881e4
1 changed files with 7 additions and 0 deletions

7
errors 100755
View File

@ -0,0 +1,7 @@
#!/bin/bash
journalctl -u epicyon | grep 'File "' > .errors.txt
if [ ! -f .errors.txt ]; then
echo 'No errors'
else
cat .errors.txt
fi