mirror of
https://codeberg.org/hyperreal/bin
synced 2024-11-25 10:23:42 +01:00
Add lnav-forwarded-logs
This commit is contained in:
parent
8f4e2fd5f7
commit
1bad5e0de6
10
lnav-forwarded-logs
Executable file
10
lnav-forwarded-logs
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
FORWARDED_LOGS=$(sudo find /var/log -type f -name "forwarded-logs.log")
|
||||||
|
|
||||||
|
if [[ -n "$FORWARDED_LOGS" ]]; then
|
||||||
|
echo "$FORWARDED_LOGS" | xargs sudo lnav
|
||||||
|
else
|
||||||
|
echo "No forwarded logs found in /var/log"
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user