mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-09-07 02:38:15 +00:00
Pull in XCATROOT more relably
the XCATROOT env variable might not be set. For this case, pull in the more reliable $::XCATROOT
This commit is contained in:
@@ -1577,6 +1577,7 @@ sub envvar
|
||||
if ($envvar =~ /^\$/) {
|
||||
$envvar =~ s/^\$//;
|
||||
}
|
||||
if ($envvar eq 'XCATROOT') { return $::XCATROOT; }
|
||||
|
||||
return ($ENV{$envvar});
|
||||
}
|
||||
|
Reference in New Issue
Block a user