Fixes another nasty.

This commit is contained in:
freesource
2003-02-10 05:11:23 +00:00
parent c54f36d1b2
commit e6e74f851a
3 changed files with 28 additions and 14 deletions
+14 -1
View File
@@ -39,12 +39,25 @@ use File::Find;
use File::Path;
use BootRoot::Options;
option();
$SIG{__WARN__} =
sub { warn @_ unless $_[0] =~ /Subroutine [\w:]+ redefined/io
|| $_[0] =~ /Use of uninitialized value in concatenation/};
# Important option setting up
option();
$::commandline = \%option if %option;
$::commandline = $ARGV[0] if $ARGV[0];
if ( $option{home} && !$option{template} ) {
undef $::commandline;
$option{gui_mode} = $option{home};
undef $option{home};
}
# If you want gBootRoot to do it's stuff somewhere else, change the
# value for $tmp1.
my $tmp1 = "/tmp"; # tmp should be default - Cristian