Permalink
Browse files

fix \r in config file deployment for some unixes

  • Loading branch information...
saizai committed Apr 22, 2012
1 parent 92306ab commit 765db0c2ff0a8c03ff42859ea8d93b606c081889
Showing with 1 addition and 1 deletion.
  1. +1 −1 recipes/deploy.rb
View
@@ -108,7 +108,7 @@
config_files << data
end
# Extract the names of all config files
- config_files.strip.split("\n").map{|f| f.sub!("#{shared_path}/config/", '')}.each do |c|
+ config_files.strip.split("\n").map{|f| f.sub("#{shared_path}/config/", '').strip}.each do |c|
run "ln -sf #{shared_path}/config/#{c} #{release_path}/config/#{c}" # And symlink in the server's version, overwriting (-f) whatever was there
end
end

0 comments on commit 765db0c

Please sign in to comment.