mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 16:51:29 +00:00
Invert test logic
This commit is contained in:
4
neofetch
4
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)"
|
||||
|
Reference in New Issue
Block a user