dotfiles 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dot_files/commands/files.rb +2 -0
- metadata +2 -2
@@ -82,6 +82,8 @@ command :pull do |path|
|
|
82
82
|
local_path = File.join(ENV['HOME'], filename)
|
83
83
|
if contents = remote_file_contents(filename)
|
84
84
|
File.open(local_path, 'w') { |f| f.write(contents) }
|
85
|
+
DotFiles.config.shas[filename] = Digest::SHA1.hexdigest(contents)
|
86
|
+
DotFiles.config.save
|
85
87
|
puts "Downloaded #{contents.size} bytes to #{local_path}."
|
86
88
|
else
|
87
89
|
error "Couldn't download remote file from '#{filename}'. Does it exist?"
|