1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-02-23 09:03:23 -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:
freesource 2002-11-14 08:38:41 +00:00
parent 82374d0388
commit 407879252c
2 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ sub option {
"preserve-ownership=s",
"kernel=s",
"kernel-version=s",
"stdout"
"no-stdout"
);

View File

@ -1830,7 +1830,7 @@ sub info {
}
if ( $option{stdout} ) {
if ( !$option{"no-stdout"} ) {
if ( %option ) {
if ($level == 0) {
print color("blue"), @msgs, color("reset");
@ -2030,12 +2030,12 @@ sub make_link_absolute {
return $target; # Target is absolute, just return it
} 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;