fix for perl 5.10 and 5.8

This commit is contained in:
DutchProgrammer 2016-03-24 23:23:31 +01:00
parent 6c280de32f
commit 5fb8e3dec7

View file

@ -461,7 +461,9 @@ sub update_tuner_version {
my $receivedScripts = 0; my $receivedScripts = 0;
my $httpcli =`which curl`; my $httpcli =`which curl`;
foreach my $script (@scripts) { foreach my $scriptKey (keys @scripts) {
my $script = $scripts[$scriptKey];
chomp($httpcli); chomp($httpcli);
if ( 1 != 1 and defined($httpcli) and -e "$httpcli" ) { if ( 1 != 1 and defined($httpcli) and -e "$httpcli" ) {