mirror of
				https://github.com/fspc/gbootroot.git
				synced 2025-11-04 00:05:35 -05:00 
			
		
		
		
	Changed stdout to no-stdout so that stdout is the default, but can be turned
off, and fixed a major bug with undef value used in dirname which caused to program to die.
This commit is contained in:
		
							parent
							
								
									82374d0388
								
							
						
					
					
						commit
						407879252c
					
				@ -44,7 +44,7 @@ sub option {
 | 
				
			|||||||
		"preserve-ownership=s",
 | 
							"preserve-ownership=s",
 | 
				
			||||||
		"kernel=s",
 | 
							"kernel=s",
 | 
				
			||||||
		"kernel-version=s",
 | 
							"kernel-version=s",
 | 
				
			||||||
		"stdout"		
 | 
							"no-stdout"		
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		);
 | 
							);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1830,7 +1830,7 @@ sub info {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if ( $option{stdout} ) {
 | 
					  if ( !$option{"no-stdout"} ) {
 | 
				
			||||||
      if ( %option ) {
 | 
					      if ( %option ) {
 | 
				
			||||||
	  if ($level == 0) {
 | 
						  if ($level == 0) {
 | 
				
			||||||
	      print color("blue"), @msgs, color("reset");	  
 | 
						      print color("blue"), @msgs, color("reset");	  
 | 
				
			||||||
@ -2030,12 +2030,12 @@ sub make_link_absolute {
 | 
				
			|||||||
    return $target;		 # Target is absolute, just return it
 | 
					    return $target;		 # Target is absolute, just return it
 | 
				
			||||||
  } else {                       ## and use return --freesource
 | 
					  } else {                       ## and use return --freesource
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $link  = cleanup_link(dirname($file) . "/$target");
 | 
					    $link  = cleanup_link(dirname($file) . "/$target") if $file;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  $link =~ s,^\.,,;  # When there is one file dir eq .  --freesource
 | 
					  $link =~ s,^\.,, if $link;  # When there is one file dir eq .  --freesource
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return $link;
 | 
					  return $link;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user