Cosmetical changes to MOTD regarding ZFS (#2417)

This commit is contained in:
Igor Pečovnik 2020-12-04 21:12:37 +01:00 committed by GitHub
parent 4c4193b033
commit f41c50db01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,6 +252,10 @@ if [[ $(command -v zpool) ]]; then
printf "ZFS pool: "
echo -ne "\e[0;91mDegraded\x1B[0m"
line=$((line+1))
elif [[ -n $(echo $zpoolstatus | grep 'no pools available') ]]; then
printf "ZFS pool: "
echo -ne "n/a"
line=$((line+1))
else
printf "ZFS pool: "
echo -ne "\e[0;92mOnline\x1B[0m"