Polish up status descriptions

This commit is contained in:
Salt 2020-09-28 15:28:14 -05:00
parent 2749f6816e
commit b5452b44c0

View File

@ -249,11 +249,11 @@ fsstatus() {
elif ! [ "$pid" -gt 0 ] 2> /dev/null; then
# PID is not a number greater than 0
status="\e[31m○\e[0m"
description="Invalid PID ($pid)"
description="\e[31mInvalid PID\e[0m ($pid)"
elif ! [ -d "/proc/$pid" ]; then
# PID is valid, but does not exist in /proc (i.e. is dead)
status="\e[31m●\e[0m"
description="Dead (PID $pid)"
description="\e[31mDead\e[0m (PID $pid)"
else
# PID is good, time for secondary validation
status="\e[32m●\e[0m"