Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
All drive letters when using /cygdrive
Browse files Browse the repository at this point in the history
Previously the code rewriting windows drive letters to /cygdrive/<letter> was hard coded to C. Now it supports all letters.
  • Loading branch information
mbarton committed Aug 21, 2013
1 parent 461d25c commit 591d0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-rackspace/action/sync_folders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def call(env)

# If on Windows, modify the path to work with cygwin rsync
if @host_os =~ /mswin|mingw|cygwin/
hostpath = hostpath.sub("C:/", "/cygdrive/c/")
hostpath = hostpath.sub(/^([A-Za-z]):\//, "/cygdrive/#{$1.downcase}/")
end

env[:ui].info(I18n.t("vagrant_rackspace.rsync_folder",
Expand Down

0 comments on commit 591d0cb

Please sign in to comment.