Polish up status descriptions
This commit is contained in:
parent
2749f6816e
commit
b5452b44c0
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user