diff options
Diffstat (limited to 'usvlogc')
-rwxr-xr-x | usvlogc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -0,0 +1,5 @@ +#!/sbin/sh +SERV_NAME=$(echo "$1" | sed 's/\/log$//') +SVDIR="$HOME"/.local/sv +SVLOGDIR="$HOME"/.local/log +[ -f "$SVLOGDIR/$SERV_NAME"/current ] && tac "$SVLOGDIR"/"$(echo "$1" | sed 's/\/log$//')"/current | less || echo "Cannot read log" |