blob: 6ec6ee18bcc9fa91a599c99a7cd8dc4666ec4441 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#! /usr/bin/env bash
set -e
if [[ -e /proc ]]; then
# I don't believe your system is Linux but there is no /proc.
exec journalctl --user -u crupest-secret-tool "$@"
elif [[ "$(uname)" == "Darwin" ]]; then
exec less "$HOME/.local/state/Crupest.SecretTool/log"
else
echo "Not supported on systems other than macOS and Linux now." >&2
exit 1
fi
|