Skip to content

Commit

Permalink
added require fileutils and change File.copy to FileUtils.copy
Browse files Browse the repository at this point in the history
  • Loading branch information
jason committed Apr 2, 2013
1 parent 1d9444d commit 0c6ade2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/ssh-config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
require 'fileutils'
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'ssh-config'))

# ssh-config - Manipulate config values in the .ssh/config file.
Expand Down
2 changes: 1 addition & 1 deletion lib/config_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def save
end

def backup
File.copy(File.expand_path("~/.ssh/config"), File.expand_path("~/.ssh/config~"))
FileUtils.copy(File.expand_path("~/.ssh/config"), File.expand_path("~/.ssh/config~"))
end

private
Expand Down

0 comments on commit 0c6ade2

Please sign in to comment.