Update dotfiles/.local/motd.sh

This commit is contained in:
Brian Zalewski 2022-10-28 19:37:01 +00:00
parent a11873b099
commit 10a5d89f12

View file

@ -399,6 +399,7 @@ print_services() {
}
print_podman() {
if type jq > /dev/null; then
printf "\\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"
fi
done
fi
}
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 " \\033[1;37mDocker:\\033[0m\\n"