-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help wanted: Windows mingw32 shell (git bash) - CRLF #83
Comments
Hm. Are you trying to deploy to a Windows server, or a running on a Windows workstation? Thanks for the heads up—unfortunately we don't have a Windows machine right now to test but I suppose we can work on some hypothetical fixes. |
I'm having the same issue. On Win7x64 trying to deploy to CentOS
|
One of my co-workers have this problem as well when deploying to a Ubuntu server. He's on Vista (no comments) with Git Bash (mingw32) and we are using Mina 0.3.0. |
I got the same error as @rezen on Windows 8.1 x64 trying to deploy to Ubuntu LTS 12.04.3 x64. |
@reterius i have same error in windows. |
Now I know why. I'm a newbie, so.... but anyway,it works. # lib/mina.rb
module Mina
#if windows os
require 'rbconfig'
is_windows = (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
if is_windows
module Shellwords
def shellescape(str)
'"' + str.gsub(/\\(?=\\*\")/, "\\\\\\").gsub(/\"/, "\\\"").gsub(/\\$/, "\\\\\\").gsub("%", "%%") + '"'
end
module_function :shellescape
class << self
alias escape shellescape
end
end
end
... |
works great !! not newbie .... expert |
Did this tweak make it into the codebase? |
Would it help progress this issue, if I put @insub's fix into a pull request? |
@coredevelopers: any reason why this isnt picked up? Solution by insub works. Why not do minor patches to support the windows community? |
It works indeed. Thanks! |
Can someome test github master if this works? |
First things first - thanks for great tool 👍
I am using Windows now (yeah...) and trying to deploy with Mina.
I found that generated bash script on Windows Git Bash (mingw32 standard shell) has CRLF line endings, but linux use LF, so there are errors like "Unexpected EOF".
I write this generated script to file, convert line endings to LF and use it manually - everything works fine.
Is this a Mina feature or a mingw32 bug or misconfiguration? :)
The text was updated successfully, but these errors were encountered: