Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/itamae/resource/remote_directory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def action_create(options)
run_specinfra(:change_file_owner, @temppath, attributes.owner, attributes.group)
end

if run_specinfra(:check_file_is_file, attributes.path)
unless check_command(["diff", "-q", @temppath, attributes.path])
if run_specinfra(:check_file_is_directory, attributes.path)
unless check_command(["diff", "-q", "-r", @temppath, attributes.path])
updated!
end
else
Expand Down
Loading