1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-02-23 09:03:23 -05:00

Changes to make $> > 0 happy.

This commit is contained in:
freesource 2001-11-04 08:54:53 +00:00
parent 5f3ce658dc
commit 05da1a4a31
2 changed files with 7 additions and 7 deletions

View File

@ -579,7 +579,7 @@ sub continue {
sub check {
$error = read_contents_file("$template_dir$template");
$error = read_contents_file("$template_dir$template", $tmp);
return if $error && $error eq "ERROR";
}

View File

@ -589,16 +589,16 @@ else {
my $user = $>;
if (!-d "$tmp1/gboot_non_root_" . $user) {
$tmp = "$tmp1/gboot_non_root" . $user if err_custom_perl(
"mkdir $tmp1/gboot_non_root_" . $user,
if (!-d "$tmp1/gboot_non_root_$user") {
$tmp = "$tmp1/gboot_non_root_$user" if err_custom_perl(
"mkdir $tmp1/gboot_non_root_$user",
"gBootRoot: ERROR: Could not make temporary directory") != 2;
}
$tmp = "$tmp1/gboot_non_root_" . $user;
if (!-d "$tmp1/gboot_non_root_mnt_" . $user) {
$mnt = "$tmp1/gboot_non_root_mnt_" . $user if err_custom_perl(
"mkdir $tmp1/gboot_non_root_mnt_" . $user,
if (!-d "$tmp1/gboot_non_root_mnt_$user") {
$mnt = "$tmp1/gboot_non_root_mnt_$user" if err_custom_perl(
"mkdir $tmp1/gboot_non_root_mnt_$user",
"gBootRoot: ERROR: Could not make mount directory") != 2;
}
$mnt = "$tmp1/gboot_non_root_mnt" . $user;