forked from ungleich-public/cdist
6d1e4d06cf
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
22 lines
551 B
Text
22 lines
551 B
Text
== Henne/Ei Problem ==
|
|
manifest will explorer benutzen der noch gar nicht existiert,
|
|
weil explorer ja auch object benutzen kann/soll/will welches erst von manifest
|
|
erzuegt wird.
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
__foo/manifest
|
|
|
|
state_should="$(cat "$__object/parameter/state")"
|
|
state_is="$(cat "$__object/explorer/state")"
|
|
# BANG -> $__object/explorer/state does not exist at this point
|
|
|
|
if [ "$state_should" != "$state_is" ]; then
|
|
__file /some/file --source /some/source
|
|
fi
|
|
|
|
|
|
|
|
|
|
|