lib/sigh/manager.rb in sigh-0.10.7 vs lib/sigh/manager.rb in sigh-0.10.8
- old
+ new
@@ -12,11 +12,15 @@
file_name = Sigh.config[:filename]
else
file_name = File.basename(path)
end
- output = File.join(Sigh.config[:output_path].gsub("~", ENV["HOME"]), file_name)
- (FileUtils.mv(path, output) rescue nil) # in case it already exists
+ output = File.join(File.expand_path(Sigh.config[:output_path]), file_name)
+ begin
+ FileUtils.mv(path, output)
+ rescue
+ # in case it already exists
+ end
install_profile(output) unless Sigh.config[:skip_install]
puts output.green