set PATH if it's unset or empty
This commit is contained in:
parent
8c42daad92
commit
9484107392
1 changed files with 5 additions and 0 deletions
|
@ -4312,6 +4312,11 @@ sub main() {
|
|||
error "invalid format. Choose from " . (join ', ', @valid_formats);
|
||||
}
|
||||
|
||||
if (!defined $ENV{PATH} || $ENV{PATH} eq "") {
|
||||
## no critic (Variables::RequireLocalizedPunctuationVars)
|
||||
$ENV{PATH} = "/usr/sbin:/usr/bin:/sbin:/bin";
|
||||
}
|
||||
|
||||
foreach my $tool ('dpkg', 'dpkg-deb', 'apt-get', 'apt-cache', 'apt-config',
|
||||
'tar') {
|
||||
my $found = 0;
|
||||
|
|
Loading…
Reference in a new issue