diff options
author | Stefanie Eckner <stefanie@eckner.net> | 2024-03-16 12:15:26 +0100 |
---|---|---|
committer | Stefanie Eckner <stefanie@eckner.net> | 2024-03-16 12:15:26 +0100 |
commit | aa9f4168bfa38762f441d298da79c3f420acbcd7 (patch) | |
tree | 135381b162eb5548bb7ca9f859e488bfb87fb248 | |
parent | e727053fca2c87016eaf5ad08a86890f1cc9453f (diff) | |
download | computer-time-limit-aa9f4168bfa38762f441d298da79c3f420acbcd7.tar.xz |
simplify termination of session
-rwxr-xr-x | computer-time-limit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/computer-time-limit b/computer-time-limit index fa2eae3..f214f99 100755 --- a/computer-time-limit +++ b/computer-time-limit @@ -55,7 +55,7 @@ wie_lange_noch() { check_time() { if [ "${noch}" -le 0 ]; then sende_msg stop "$2" >/dev/null - loginctl session-status | sed -n 's/ .*$//;1p' | xargs -r loginctl terminate-session + loginctl terminate-session "$1" fi if [ "${noch}" -lt 3630 ] && [ "${noch}" -gt 3570 ]; then espeak-ng -vde -w /tmp/stunde.wav 'noch eine Stunde' |