summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefanie Eckner <stefanie@eckner.net>2024-03-16 12:15:15 +0100
committerStefanie Eckner <stefanie@eckner.net>2024-03-16 12:15:15 +0100
commite727053fca2c87016eaf5ad08a86890f1cc9453f (patch)
tree77368ad734af91b720b4ec3cf36bd1def89dc6d8
parentfcac75200905f68f1b40c6f709b29b874dcfbb60 (diff)
downloadcomputer-time-limit-e727053fca2c87016eaf5ad08a86890f1cc9453f.tar.xz
fix bug: swapped key file and user
-rwxr-xr-xcomputer-time-limit2
1 files changed, 1 insertions, 1 deletions
diff --git a/computer-time-limit b/computer-time-limit
index f891f25..fa2eae3 100755
--- a/computer-time-limit
+++ b/computer-time-limit
@@ -54,7 +54,7 @@ wie_lange_noch() {
check_time() {
if [ "${noch}" -le 0 ]; then
- sende_msg stop "$1" >/dev/null
+ sende_msg stop "$2" >/dev/null
loginctl session-status | sed -n 's/ .*$//;1p' | xargs -r loginctl terminate-session
fi
if [ "${noch}" -lt 3630 ] && [ "${noch}" -gt 3570 ]; then