From 31826f7938997e9141cfa7a7975963ca2ecfe7f3 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 28 Oct 2022 11:57:33 -0700 Subject: [PATCH] utils: simply and robustify tell_source This is simpler if we just always lowercase $iso, plus it saves us when somebody (*cough*) messes up the casing. Signed-off-by: Adam Williamson --- lib/utils.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/utils.pm b/lib/utils.pm index 3b3ea6c8..33b2863b 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -1230,13 +1230,11 @@ sub tell_source { # except Workstation and Server, there are no graphical differences # between various spins and isos. my $iso = get_var('SUBVARIANT'); - if ($iso eq 'Workstation' or $iso eq 'Server') { - $iso = lc($iso); - } - elsif ($iso eq 'AtomicHost') { + $iso = lc($iso); + if ($iso eq 'atomichost') { $iso = 'atomic'; } - elsif ($iso eq 'Silverblue') { + elsif ($iso eq 'silverblue') { $iso = 'workstation'; } else {