Merge pull request #541 from 4nd3r/__file

fix __file
This commit is contained in:
Darko Poljak 2017-07-06 22:56:54 +02:00 committed by GitHub
commit 6b3b5c735e

View file

@ -29,8 +29,11 @@ upload_file=
create_file=
if [ "$state_should" = "present" -o "$state_should" = "exists" ]; then
if [ ! -f "$__object/parameter/source" ]; then
create_file=1
echo create >> "$__messages_out"
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