From 3be259f71ff1a20b9cc66c2c2907cae1c60437db Mon Sep 17 00:00:00 2001 From: Jesus Date: Mon, 11 Jul 2022 09:37:25 +0800 Subject: prepare re-compatibility with another OS unix-like --- hyperterm/tools/sysinfo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hyperterm/tools/sysinfo.sh') diff --git a/hyperterm/tools/sysinfo.sh b/hyperterm/tools/sysinfo.sh index 6d89bcd..2af9a5c 100644 --- a/hyperterm/tools/sysinfo.sh +++ b/hyperterm/tools/sysinfo.sh @@ -7,7 +7,7 @@ function ii() { es) printf '%s\e[1;36m%s\e[m\n' "Has iniciado sesión en " "$(hostname -f 2> /dev/null || hostname)" printf '\n\e[1;32m%s\e[m\n%s\n' "Información adicional:" "$(uname -a)" - printf '\n\e[1;32m%s\e[m\n%s\n' "Usuarios Conectados:" "$(who -u)" + printf '\n\e[1;32m%s\e[m\n%s\n' "Usuarios Conectados:" "$(who -u 2> /dev/null)" printf '\n\e[1;32m%s\e[m\n%s\n' "Fecha actual:" "$(date)" printf '\n\e[1;32m%s\e[m\n%s\n' "Estadísticas de la máquina:" "$(uptime)" printf '\n\e[1;32m%s\e[m\n%s\n' "Estadísticas de la memoria:" "$(free)" @@ -19,7 +19,7 @@ function ii() { *) printf '%s\e[1;36m%s\e[m\n' "You are logged on " "$(hostname -f 2> /dev/null || hostname)" printf '\n\e[1;32m%s\e[m\n%s\n' "Additionnal information:" "$(uname -a)" - printf '\n\e[1;32m%s\e[m\n%s\n' "Users logged:" "$(who -u)" + printf '\n\e[1;32m%s\e[m\n%s\n' "Users logged:" "$(who -u 2> /dev/null)" printf '\n\e[1;32m%s\e[m\n%s\n' "Current date:" "$(date)" printf '\n\e[1;32m%s\e[m\n%s\n' "Machine stats:" "$(uptime)" printf '\n\e[1;32m%s\e[m\n%s\n' "Memory stats:" "$(free)" -- cgit v1.2.3