mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-25 23:33:07 +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
|
# except Workstation and Server, there are no graphical differences
|
||||||
# between various spins and isos.
|
# between various spins and isos.
|
||||||
my $iso = get_var('SUBVARIANT');
|
my $iso = get_var('SUBVARIANT');
|
||||||
if ($iso eq 'Workstation' or $iso eq 'Server') {
|
$iso = lc($iso);
|
||||||
$iso = lc($iso);
|
if ($iso eq 'atomichost') {
|
||||||
}
|
|
||||||
elsif ($iso eq 'AtomicHost') {
|
|
||||||
$iso = 'atomic';
|
$iso = 'atomic';
|
||||||
}
|
}
|
||||||
elsif ($iso eq 'Silverblue') {
|
elsif ($iso eq 'silverblue') {
|
||||||
$iso = 'workstation';
|
$iso = 'workstation';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user