From 279a1e58bc9015f51fdc8c5453cbd75ad6a6f777 Mon Sep 17 00:00:00 2001 From: Joseph Durel Date: Thu, 1 Feb 2018 23:46:50 -0500 Subject: [PATCH] =?UTF-8?q?Full=20`if`=20=E2=86=92=20single=20line=20for?= =?UTF-8?q?=20macOS=20Light=20theme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- neofetch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/neofetch b/neofetch index c710775d..91bf857b 100755 --- a/neofetch +++ b/neofetch @@ -930,9 +930,7 @@ get_wm_theme() { wm_theme="$(PlistBuddy -c "Print AppleInterfaceStyle" "$global_preferences")" wm_theme_color="$(PlistBuddy -c "Print AppleAquaColorVariant" "$global_preferences")" - if [[ -z "$wm_theme" ]]; then - wm_theme="Light" - fi + [[ -z "$wm_theme" ]] && wm_theme="Light" if [[ -z "$wm_theme_color" ]] || ((wm_theme_color == 1)); then wm_theme_color="Blue"