mirror of
https://codeberg.org/hyperreal/bin
synced 2024-11-01 16:43:08 +01:00
11 lines
241 B
Plaintext
11 lines
241 B
Plaintext
|
#!/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
|