set PATH if it's unset or empty

debextract
parent 8c42daad92
commit 9484107392
Signed by untrusted user: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -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…
Cancel
Save