Changeset 642

Show
Ignore:
Timestamp:
05/01/07 21:02:15 (6 years ago)
Author:
max
Message:

oztivo: exit with non-zero status on bad configuration

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • grabbers/oztivo

    r639 r642  
    33# OzTivo grabber 
    44 
    5 my $version = '0.25'; 
     5my $version = '0.26'; 
    66 
    77# Requires configuration! 
     
    3636#         in sync with Sydney 
    3737# 0.25  : I think I corrected the wrong way 
     38# 0.26  : Exit with non-zero status on bad configuration 
    3839 
    3940use strict; 
     
    276277    my $username = <>; 
    277278    chomp $username; 
     279    unless ($username) 
     280    { 
     281        print "No username supplied. Exiting configuration.\n"; 
     282        exit 3; 
     283    } 
    278284    print "Password? "; 
    279285    my $pw = <>; 
    280286    chomp $pw; 
    281  
     287    unless ($pw) 
     288    { 
     289        print "No password supplied. Exiting configuration.\n"; 
     290        exit 3; 
     291    } 
    282292    print "Creating config file $config_file...\n"; 
    283293    open (CONF, ">$config_file") 
  • status

    r641 r642  
    55grabber         abc2_website        2.11 
    66grabber         sbsnews_website     0.13 
    7 grabber         oztivo              0.25 
     7grabber         oztivo              0.26 
    88grabber         jrobbo              0.09 
    99grabber         ninemsn             0.14