summaryrefslogtreecommitdiff
path: root/usvlogc
blob: efebad2b14a4ff0067950ea2f8e636e7b6f04655 (plain)
1
2
3
4
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"