From 38bec024fb3b568da2227d00a7d3ad3d2a0fdba7 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Fri, 28 Oct 2022 19:38:42 +0000 Subject: [PATCH] Update dotfiles/.local/motd.sh --- dotfiles/.local/motd.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotfiles/.local/motd.sh b/dotfiles/.local/motd.sh index 631d98e5..e1083ca5 100644 --- a/dotfiles/.local/motd.sh +++ b/dotfiles/.local/motd.sh @@ -323,7 +323,7 @@ print_swap() { } print_diskspace() { - if type jq > /dev/null; then + if command -v jq > /dev/null; then printf "\\n" printf " \\033[1;37mDiskspace:\\033[0m\\n" @@ -399,7 +399,7 @@ print_services() { } print_podman() { - if type jq > /dev/null; then + if command -v jq > /dev/null; then printf "\\n" printf " \\033[1;37mPodman:\\033[0m\\n" @@ -441,7 +441,7 @@ print_podman() { } print_docker() { - if type jq > /dev/null && [ "$(systemctl is-active docker.service)" = "active" ]; then + if command -v jq > /dev/null && [ "$(systemctl is-active docker.service)" = "active" ]; then printf "\\n" printf " \\033[1;37mDocker:\\033[0m\\n"