diff --git a/lib/homesick/cli.rb b/lib/homesick/cli.rb index 43d401f..d339dff 100644 --- a/lib/homesick/cli.rb +++ b/lib/homesick/cli.rb @@ -31,7 +31,7 @@ module Homesick destination = Pathname.new(destination) source = Pathname.new(source) return 'Unable to create diff: destination or content is a directory' if destination.directory? || source.directory? - return super(destination, source) unless destination.symlink? + return super(destination, File.binread(source)) unless destination.symlink? say "- #{destination.readlink}", :red, true say "+ #{source.expand_path}", :green, true end