diff --git a/BootRoot/Options.pm b/BootRoot/Options.pm index b23356a..d48ea0a 100644 --- a/BootRoot/Options.pm +++ b/BootRoot/Options.pm @@ -44,7 +44,7 @@ sub option { "preserve-ownership=s", "kernel=s", "kernel-version=s", - "stdout" + "no-stdout" ); diff --git a/BootRoot/Yard.pm b/BootRoot/Yard.pm index 5076881..2bd3054 100644 --- a/BootRoot/Yard.pm +++ b/BootRoot/Yard.pm @@ -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;