Home · About · Download · Documentation · Getting Help · Google+

Changeset 711


Ignore:
Timestamp:
01/20/2012 03:11:04 PM (7 years ago)
Author:
gmk
Message:

Fixing bug with running from cron or when STDIN and STDOUT are not opened.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/common/lib/Warewulf/Term.pm

    r579 r711  
    5454    if (! $singleton) { 
    5555        $singleton = {}; 
    56         $singleton->{"TERM"} = Term::ReadLine->new("Warewulf"); 
    57         $singleton->{"ATTRIBS"} = $singleton->{"TERM"}->Attribs; 
    58  
    59         $singleton->{"TERM"}->ornaments(0); 
    60         $singleton->{"TERM"}->MinLine(undef); 
    61  
    62         $singleton->{"ATTRIBS"}->{completion_function} = \&auto_complete; 
    63  
    6456        if ( -t STDIN && -t STDOUT ) { 
     57            $singleton->{"TERM"} = Term::ReadLine->new("Warewulf"); 
     58            $singleton->{"ATTRIBS"} = $singleton->{"TERM"}->Attribs; 
     59 
     60            $singleton->{"TERM"}->ornaments(0); 
     61            $singleton->{"TERM"}->MinLine(undef); 
     62 
     63            $singleton->{"ATTRIBS"}->{completion_function} = \&auto_complete; 
     64 
    6565            $singleton->{"INTERACTIVE"} = "1"; 
    6666        } else { 
Note: See TracChangeset for help on using the changeset viewer.