fs_errors - harden sudo command execution
Compare changes
+ 14
− 10
@@ -11,12 +11,13 @@
@@ -11,12 +11,13 @@
@@ -52,7 +53,7 @@ EOF
@@ -52,7 +53,7 @@ EOF
@@ -67,19 +68,22 @@ esac
@@ -67,19 +68,22 @@ esac
# out=$( sudo /bin/journalctl --since $sincedate | grep 'kernel: ' | grep -v 'check_fs_errors' | grep -E '(error|fail)' | grep 'inconsistent' )
out=$( sudo /bin/journalctl | grep 'kernel: ' | grep -v 'check_fs_errors' | grep -E '(error|fail)' | grep 'inconsistent' )