mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-22 05:53:09 +00:00
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:
parent
b7a3d9ee1b
commit
31826f7938
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user