append to $PATH instead of replacing its content

This commit is contained in:
Johannes 'josch' Schauer 2018-11-23 17:30:32 +01:00
parent 40e25ef653
commit 4ef1eda200
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -747,7 +747,11 @@ sub setup {
} }
# setting PATH for chroot, ldconfig, start-stop-daemon... # setting PATH for chroot, ldconfig, start-stop-daemon...
$ENV{"PATH"} = "/usr/sbin:/usr/bin:/sbin:/bin"; if (defined $ENV{PATH} && $ENV{PATH} ne "") {
$ENV{PATH} = "$ENV{PATH}:/usr/sbin:/usr/bin:/sbin:/bin";
} else {
$ENV{PATH} = "/usr/sbin:/usr/bin:/sbin:/bin";
}
my %pkgs_to_install; my %pkgs_to_install;
if (defined $options->{include}) { if (defined $options->{include}) {