Update dotfiles/.local/motd.sh
This commit is contained in:
parent
a11873b099
commit
10a5d89f12
1 changed files with 30 additions and 28 deletions
|
@ -399,6 +399,7 @@ print_services() {
|
||||||
}
|
}
|
||||||
|
|
||||||
print_podman() {
|
print_podman() {
|
||||||
|
if type jq > /dev/null; then
|
||||||
printf "\\n"
|
printf "\\n"
|
||||||
printf " \\033[1;37mPodman:\\033[0m\\n"
|
printf " \\033[1;37mPodman:\\033[0m\\n"
|
||||||
|
|
||||||
|
@ -436,10 +437,11 @@ print_podman() {
|
||||||
printf " \\033[%um%s\\033[0m \\033[%um%s\\033[0m\\n" "$PODMAN_OTHER_COLOR" "$PODMAN_OTHER_ICON" "$PODMAN_OTHER_COLOR" "$pod"
|
printf " \\033[%um%s\\033[0m \\033[%um%s\\033[0m\\n" "$PODMAN_OTHER_COLOR" "$PODMAN_OTHER_ICON" "$PODMAN_OTHER_COLOR" "$pod"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
print_docker() {
|
print_docker() {
|
||||||
if [ "$(systemctl is-active docker.service)" = "active" ]; then
|
if type jq > /dev/null && [ "$(systemctl is-active docker.service)" = "active" ]; then
|
||||||
printf "\\n"
|
printf "\\n"
|
||||||
printf " \\033[1;37mDocker:\\033[0m\\n"
|
printf " \\033[1;37mDocker:\\033[0m\\n"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue