forked from josch/mmdebstrap
append to $PATH instead of replacing its content
This commit is contained in:
parent
40e25ef653
commit
4ef1eda200
1 changed files with 5 additions and 1 deletions
|
@ -747,7 +747,11 @@ sub setup {
|
|||
}
|
||||
|
||||
# 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;
|
||||
if (defined $options->{include}) {
|
||||
|
|
Loading…
Reference in a new issue