"who -m" output must be normalized

This commit is contained in:
Jérémy Lecour 2019-03-16 19:40:20 +01:00
parent ac86a97531
commit 71d1fc417c

View file

@ -76,7 +76,7 @@ get_tty() {
} }
get_who() { get_who() {
who=$(LC_ALL=C who -m) who=$(LC_ALL=C who -m | tr -s ' ')
if [ -n "${who}" ]; then if [ -n "${who}" ]; then
echo "${who}" echo "${who}"