diff --git a/bin/cdist-cconfig-tree b/bin/cdist-cconfig-tree index d44d8232..084e9fd1 100755 --- a/bin/cdist-cconfig-tree +++ b/bin/cdist-cconfig-tree @@ -71,17 +71,16 @@ mkdir -p "${cdist_bindir}" #unset PATH # prepend our path -PATH="${cdist_bindir}:$PATH" +PATH="${__cdist_cache_bin}:$PATH" # create output dir mkdir -p "${cdist_confdir}" # force -x, so the user is aware the file is executed -if [ -x "${__cdist_manifest_init}" ]; then - "${__cdist_manifest_init}" -else - echo Throw some error, as you forgot to +x it. - exit 1 +if [ ! -x "${__cdist_manifest_init}" ]; then + __cdist_exit_err "${__cdist_manifest_init} needs to be executable." fi +"${__cdist_manifest_init}" + echo "Finished tree generation, have a look at ${cdist_confdir}."