Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
style(rake): Use inline gsub! for conf file paths to mklink
Browse files Browse the repository at this point in the history
  • Loading branch information
jayharris committed Apr 11, 2015
1 parent 93385dd commit 8671491
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ task :link_vim_conf_files do
source = expand("../janus/vim/#{file}", __FILE__)
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
require 'open3'
dest = dest.gsub(?/, ?\\)
source = source.gsub(?/, ?\\)
dest.gsub!(?/, ?\\)
source.gsub!(?/, ?\\)
puts "cmd.exe /c mklink #{dest} #{source}"
stdin, stdout, stderr, wait_thr = Open3.popen3('cmd.exe', "/c mklink #{dest} #{source}")
wait_thr.value.exitstatus
else
Expand Down

0 comments on commit 8671491

Please sign in to comment.