From 9eb7704f2d93dbf34152da73ba6936c9ba172255 Mon Sep 17 00:00:00 2001 From: Benjamin Lupton Date: Fri, 8 Sep 2023 13:27:45 +0800 Subject: [PATCH] theme.nu: fix failure on empty theme --- sources/theme.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/theme.nu b/sources/theme.nu index a4a815fb2..15634adac 100644 --- a/sources/theme.nu +++ b/sources/theme.nu @@ -17,11 +17,11 @@ # } # instead do it manually -if 'DOROTHY_THEME_OVERRIDE' in $env { +if 'DOROTHY_THEME_OVERRIDE' in $env and $env.DOROTHY_THEME_OVERRIDE != '' { $env.DOROTHY_THEME = $env.DOROTHY_THEME_OVERRIDE } -if 'DOROTHY_THEME' in $env { +if 'DOROTHY_THEME' in $env and $env.DOROTHY_THEME != '' { if $env.DOROTHY_THEME == 'oz' { source ../themes/oz.nu } else if $env.DOROTHY_THEME == 'starship' {