Corrected flags and once more corrected validation
This commit is contained in:
@@ -17,7 +17,7 @@ use URI::Escape;
|
||||
# --- Environment Variables ---
|
||||
use constant LIDARR_BASE => $ENV{LIDARR_BASE} || 'http://localhost:8686';
|
||||
|
||||
getopts('bfhv');
|
||||
getopts('f');
|
||||
|
||||
my $fresh_result = defined $::opt_f ? $::opt_f : 0; # vs STALE
|
||||
|
||||
@@ -174,9 +174,5 @@ sub validate {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (@warnings) {
|
||||
warn 'WARNING: ' . join(', ', @warnings) . "\n";
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
return @warnings;
|
||||
}
|
Reference in New Issue
Block a user