do not create code if there is no gencode
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
8924a9583d
commit
1f4e8fe564
1 changed files with 2 additions and 2 deletions
|
@ -44,6 +44,7 @@ export __global="$__cdist_out_dir"
|
||||||
|
|
||||||
cd "$__cdist_local_base_dir"
|
cd "$__cdist_local_base_dir"
|
||||||
|
|
||||||
|
if [ -x "$gencode" ]; then
|
||||||
cat << eof
|
cat << eof
|
||||||
#
|
#
|
||||||
# The following code is imported from output of $gencode
|
# The following code is imported from output of $gencode
|
||||||
|
@ -51,7 +52,6 @@ cat << eof
|
||||||
|
|
||||||
eof
|
eof
|
||||||
|
|
||||||
if [ -x "$gencode" ]; then
|
|
||||||
__cdist_exec_fail_on_error "$gencode"
|
__cdist_exec_fail_on_error "$gencode"
|
||||||
else
|
else
|
||||||
if [ -f "$gencode" ]; then
|
if [ -f "$gencode" ]; then
|
||||||
|
|
Loading…
Reference in a new issue