Remove the test file comparison implementation

This commit is contained in:
Donovan Glover 2017-11-14 12:55:42 -05:00
parent 36697f630e
commit a8ca2300c4
No known key found for this signature in database
GPG Key ID: 8FC5F7D90A5D8F4D

View File

@ -1,24 +0,0 @@
require "fileutils"
require "../lib/trucolor"
UPSTREAM = "/Home/new-start/dotfiles"
Dir.glob(ENV["HOME"] + UPSTREAM + "/**/*", File::FNM_DOTMATCH).each do |file|
next if File.directory?(file)
puts file
a = file.sub(UPSTREAM, "")
if File.exists?(a) then
print "Are the two files identical? "
identical = FileUtils.compare_file(file, a)
print identical
print "\n"
if not identical and not file.include?(".jpg")
puts `grep -nFxvf #{file} #{a}`
puts `grep -nFxvf #{a} #{file}`
end
else
puts "a did not exist."
end
end