do not create code if there is no gencode

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/1.6
Nico Schottelius 14 years ago
parent 8924a9583d
commit 1f4e8fe564
  1. 4
      bin/cdist-object-gencode

@ -44,14 +44,14 @@ export __global="$__cdist_out_dir"
cd "$__cdist_local_base_dir"
cat << eof
if [ -x "$gencode" ]; then
cat << eof
#
# The following code is imported from output of $gencode
#
eof
if [ -x "$gencode" ]; then
__cdist_exec_fail_on_error "$gencode"
else
if [ -f "$gencode" ]; then

Loading…
Cancel
Save