forked from ungleich-public/cdist
commit
6b3b5c735e
1 changed files with 5 additions and 2 deletions
|
@ -29,8 +29,11 @@ upload_file=
|
|||
create_file=
|
||||
if [ "$state_should" = "present" -o "$state_should" = "exists" ]; then
|
||||
if [ ! -f "$__object/parameter/source" ]; then
|
||||
remote_stat="$(cat "$__object/explorer/stat")"
|
||||
if [ -z "$remote_stat" ]; then
|
||||
create_file=1
|
||||
echo create >> "$__messages_out"
|
||||
fi
|
||||
else
|
||||
source="$(cat "$__object/parameter/source")"
|
||||
if [ "$source" = "-" ]; then
|
||||
|
|
Loading…
Reference in a new issue