From 6c69e0246fac43ba83951553f64f7079e72bfa20 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 2 Feb 2011 16:03:39 +0100 Subject: [PATCH] restructure /cdist-cconfig-tree Signed-off-by: Nico Schottelius --- bin/cdist-cconfig-tree | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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}."