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 <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-10-28 11:57:33 -07:00
parent b7a3d9ee1b
commit 31826f7938
1 changed files with 3 additions and 5 deletions

View File

@ -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 {