summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcomputer-time-limit6
1 files changed, 3 insertions, 3 deletions
diff --git a/computer-time-limit b/computer-time-limit
index c27dca1..4b826e8 100755
--- a/computer-time-limit
+++ b/computer-time-limit
@@ -53,7 +53,7 @@ wie_lange_noch() {
check_time() {
if [ "${noch}" -le 0 ]; then
- sende_msg stop "$1"
+ sende_msg stop "$1" >/dev/null
loginctl session-status | sed -n 's/ .*$//;1p' | xargs -r loginctl terminate-session
fi
if [ "${noch}" -lt 3630 ] && [ "${noch}" -gt 3570 ]; then
@@ -100,7 +100,7 @@ is_logged_in() {
stop_all() {
for key_file in "${keys[@]}"; do
- sende_msg stop "${key_file}"
+ sende_msg stop "${key_file}" >/dev/null
done
}
@@ -115,7 +115,7 @@ while true; do
wie_lange_noch "${key}"
check_time "${user}" "${key}"
else
- sende_msg stop "${key}"
+ sende_msg stop "${key}" >/dev/null
fi
done
sleep $((15 + ((noch + 15) % 30)))