2
0
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:
Jarrod Johnson
2018-08-11 23:49:37 -04:00
parent 337b5fd556
commit da72c6b868

View File

@@ -1577,6 +1577,7 @@ sub envvar
if ($envvar =~ /^\$/) {
$envvar =~ s/^\$//;
}
if ($envvar eq 'XCATROOT') { return $::XCATROOT; }
return ($ENV{$envvar});
}