forked from ungleich-public/cdist
only setup path when executing something, not generally
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
97e8c431af
commit
160d85dee1
3 changed files with 5 additions and 7 deletions
|
|
@ -24,7 +24,8 @@
|
|||
__cdist_run_shell()
|
||||
{
|
||||
set +e
|
||||
sh -e "$@"
|
||||
# Prepend our path, so all cdist tools come before other tools
|
||||
PATH="${__cdist_out_type_bin_dir}:$PATH" sh -e "$@"
|
||||
if [ "$?" -ne 0 ]; then
|
||||
__cdist_echo error "$1 exited non-zero"
|
||||
__cdist_echo warn "Faulty code:"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue