mirror of
https://github.com/miyu0-bit/frameeye-helper.git
synced 2026-10-06 00:00:17 +02:00
7 lines
321 B
Bash
Executable File
7 lines
321 B
Bash
Executable File
#!/bin/bash
|
|
# `journalctl --user -u UNIT -n N`: the fake services' logs.
|
|
unit=""; lines=50
|
|
while [ $# -gt 0 ]; do case "$1" in -u) unit="${2%.service}"; shift ;; -n) lines="$2"; shift ;; esac; shift; done
|
|
log="$HOME/.fakesystemd/$unit.log"
|
|
if [ -f "$log" ]; then tail -n "$lines" "$log"; else echo "-- No entries --"; fi
|