diff options
author | Stefanie Eckner <stefanie@eckner.net> | 2024-03-16 11:29:11 +0100 |
---|---|---|
committer | Stefanie Eckner <stefanie@eckner.net> | 2024-03-16 11:29:11 +0100 |
commit | 31452f0df30695c6e9bc1de7ad50194149ca1e5d (patch) | |
tree | d3c9d30c67b530548e1b4c651b9b7b34a98d35ca | |
parent | 85da5aa7c3cba6704a834484c1540434c04442eb (diff) | |
download | computer-time-limit-31452f0df30695c6e9bc1de7ad50194149ca1e5d.tar.xz |
supress verbose output
-rwxr-xr-x | computer-time-limit | 6 |
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))) |