Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Jun 26, 2014
1 parent f689e60 commit c1703a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/modules/Update.rb
Expand Up @@ -844,9 +844,7 @@ def create_backup(name, paths)

# tar reports an error if a file does not exist.
# So we have to check this before.
existing_paths = paths.reject do |p|
p unless File.exists?(File.join(mounted_root, p))
end
existing_paths = paths.select { |p| File.exist?(File.join(mounted_root, p)) }

# ensure directory exists
::FileUtils.mkdir_p(File.join(mounted_root, BACKUP_DIR))
Expand Down

0 comments on commit c1703a9

Please sign in to comment.