From 6f0413ead5605e9fa86fb090c9480ea4136499da Mon Sep 17 00:00:00 2001 From: Robin Hahling Date: Tue, 19 Jul 2016 17:06:32 +0200 Subject: [PATCH] Detect shell on DragonFly BSD --- screenfetch-dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenfetch-dev b/screenfetch-dev index a3b019b..238e4c8 100755 --- a/screenfetch-dev +++ b/screenfetch-dev @@ -1359,7 +1359,7 @@ detectshell () { else if [[ "${OSTYPE}" == "linux-gnu" || "${OSTYPE}" == "linux" ]]; then shell_type=$(ps -p $PPID -o cmd --no-heading) - elif [[ "${distro}" == "Mac OS X" || "${distro}" == "FreeBSD" || "${distro}" == "OpenBSD" || "${distro}" == "NetBSD" ]]; then + elif [[ "${distro}" == "Mac OS X" || "${distro}" == "DragonFlyBSD" || "${distro}" == "FreeBSD" || "${distro}" == "OpenBSD" || "${distro}" == "NetBSD" ]]; then shell_type=$(ps -p $PPID -o command | tail -1) else shell_type=$(ps -p $(ps -p $PPID | awk '$1 !~ /PID/ {print $1}') | awk 'FNR>1 {print $1}')