remove WebGUI::Utility::isIn
This commit is contained in:
parent
0e754a51e4
commit
6aa26c2e44
61 changed files with 126 additions and 148 deletions
|
|
@ -398,13 +398,6 @@ sub installModule {
|
|||
chdir $cwd;
|
||||
}
|
||||
|
||||
#----------------------------------------
|
||||
sub isIn {
|
||||
my $key = shift;
|
||||
$_ eq $key and return 1 for @_;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#----------------------------------------
|
||||
sub isRootRequirementMet {
|
||||
if (getOs() eq "Linuxish") {
|
||||
|
|
@ -437,7 +430,7 @@ sub prompt {
|
|||
my $answer = <STDIN>;
|
||||
chomp $answer;
|
||||
$answer = $default if ($answer eq "");
|
||||
$answer = prompt($question,$default,@answers) if (($#answers > 0 && !(isIn($answer,@answers))) || $answer eq "");
|
||||
$answer = prompt($question,$default,@answers) if (($#answers > 0 && !($answer ~~ @answers)) || $answer eq "");
|
||||
return $answer;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue