From 9ad01bfe182799f53c537431a1b4c1b394b28d87 Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Sun, 22 Dec 2019 14:15:37 +0100 Subject: [PATCH] Invert test logic --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index b772a790..2c5465ce 100755 --- a/neofetch +++ b/neofetch @@ -3112,14 +3112,14 @@ END if ((child == "$(qdbus "$i" "$session" processId)")); then profile="$(qdbus "$i" "$session" environment |\ awk -F '=' '/KONSOLE_PROFILE_NAME/ {print $2}')" - [[ ! $profile ]] && profile="$(qdbus "$i" "$session" profile)" + [[ $profile ]] || profile="$(qdbus "$i" "$session" profile)" break fi done [[ $profile ]] && break done - [[ ! $profile ]] && return + [[ $profile ]] || return # We could have two profile files for the same profile name, take first match profile_filename="$(grep -l "Name=${profile}" "$HOME"/.local/share/konsole/*.profile)"