-
Notifications
You must be signed in to change notification settings - Fork 899
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
Guarantee UNIX characters when uploading scripts #348
Comments
As update, in the same Windows system, running a rundeck server, connecting to a CentOS node. 4 cases:
(*) It looks that windows delimiters are introduced when extracting the script CDATA from the job XML definition (or something like that (?)). |
I hit the same problem, so any work around I can convert using dos2unix like command before submit to Unix server? |
Any update on this issue? can it have an option to perform dos2unix or unix2dos before uploading the file to target host? |
This enhancement/bugfix is not on our short term roadmap. We may re-open this issue in the future. In the meantime, any community contribution for this feature is welcome. |
The issue has been discussed here (https://groups.google.com/forum/?fromgroups=#!topicsearchin/rundeck-discuss/bug/rundeck-discuss/OW1KGBtznn4).
When Job XML definitions are created on Windows systems, scripts can contain windows characters that will result in an error when executed on a UNIX system.
04:43:08 bash: /tmp/1364956979089-CentOS-r56-dispatch-script.sh: /bin/sh^M: bad interpreter: No such file or directory
It should not be difficult to replace windows end lines by UNIX endlines somewhere in the process to guarantee that UNIX get not win chars.
Potential places where this verification could be done:
The text was updated successfully, but these errors were encountered: